summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-10-31 14:14:37 +0300
committerEvgeny Vereshchagin <evvers@ya.ru>2015-10-31 14:14:37 +0300
commitcbe46ead79267ca0a2807782f714bf9f60ff489f (patch)
treec2d714bf125a82b71ca2de6ba85bd79b87c8238b /src
parented574a6834d267c82cac0408fe977c26256bec9a (diff)
core: set_unit_path overwrites SYSTEMD_UNIT_PATH
Diffstat (limited to 'src')
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 8d56401231..f5ec630de2 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -2328,7 +2328,7 @@ int unit_add_two_dependencies_by_name(Unit *u, UnitDependency d, UnitDependency
int set_unit_path(const char *p) {
/* This is mostly for debug purposes */
- if (setenv("SYSTEMD_UNIT_PATH", p, 0) < 0)
+ if (setenv("SYSTEMD_UNIT_PATH", p, 1) < 0)
return -errno;
return 0;