summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-20 17:56:57 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-20 19:48:16 -0400
commitcf7d80a5fe549d4db11800015e02220dccec3096 (patch)
tree05b65bec6fc7fa21ec3cf64f8b0a7816cfd51829 /src/core/unit.c
parent8328d8c63332319965fd288634a9a709e9b96425 (diff)
path-lookup: make SYSTEMD_UNIT_PATH more flexible
It can now contain more than one directory, and can be used to only prepend, not totally override, the normal load path.
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 0e4ebfde9b..b68796a941 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -2165,11 +2165,8 @@ int unit_add_two_dependencies_by_name_inverse(Unit *u, UnitDependency d, UnitDep
}
int set_unit_path(const char *p) {
- _cleanup_free_ char *c = NULL;
-
/* This is mostly for debug purposes */
- c = path_make_absolute_cwd(p);
- if (setenv("SYSTEMD_UNIT_PATH", c, 0) < 0)
+ if (setenv("SYSTEMD_UNIT_PATH", p, 0) < 0)
return -errno;
return 0;