summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-10-31 17:22:20 +0100
committerRonny Chevalier <chevalier.ronny@gmail.com>2015-10-31 17:22:20 +0100
commit534e8f89d6367cd0e9e17fff67880fb430071d01 (patch)
treec2d714bf125a82b71ca2de6ba85bd79b87c8238b /src
parented574a6834d267c82cac0408fe977c26256bec9a (diff)
parentcbe46ead79267ca0a2807782f714bf9f60ff489f (diff)
Merge pull request #1734 from evverx/overwrite-sysemd-unit-path
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;