summaryrefslogtreecommitdiff
path: root/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-13 01:07:02 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-13 01:07:02 +0100
commit036643a247c659db8e1b3df1778d51553a816ec9 (patch)
tree1ffe6bdfec708fec46adb58c531bb2455f399cee /unit.c
parent65d2ebdc3408c81a947de8712b37b9398d955465 (diff)
config: implement search path logic
Diffstat (limited to 'unit.c')
-rw-r--r--unit.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/unit.c b/unit.c
index cb9fe7cdaa..b8a1d8bb33 100644
--- a/unit.c
+++ b/unit.c
@@ -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;