chiark / gitweb /
git: ignore Makefile
[elogind.git] / unit.c
diff --git a/unit.c b/unit.c
index cb9fe7cdaaa6429c2de4dc52cd142c62ad8eb5a4..b8a1d8bb338259a1edac08b5199f4db409831013 100644 (file)
--- 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;