diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-13 01:07:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-13 01:07:02 +0100 |
commit | 036643a247c659db8e1b3df1778d51553a816ec9 (patch) | |
tree | 1ffe6bdfec708fec46adb58c531bb2455f399cee /unit.c | |
parent | 65d2ebdc3408c81a947de8712b37b9398d955465 (diff) |
config: implement search path logic
Diffstat (limited to 'unit.c')
-rw-r--r-- | unit.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -972,16 +972,6 @@ int unit_add_dependency_by_name(Unit *u, UnitDependency d, const char *name) { return 0; } -const char *unit_path(void) { - char *e; - - if ((e = getenv("UNIT_PATH"))) - if (path_is_absolute(e)) - return e; - - return UNIT_PATH; -} - int set_unit_path(const char *p) { char *cwd, *c; int r; @@ -1002,7 +992,7 @@ int set_unit_path(const char *p) { return -ENOMEM; } - if (setenv("UNIT_PATH", c, 0) < 0) { + if (setenv("SYSTEMD_UNIT_PATH", c, 0) < 0) { r = -errno; free(c); return r; |