X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpath-lookup.c;h=4160d5586272d44eee3bcb85d693533b8ed1eca9;hb=541d6159c6b82c6786730d70b761d1aefffa8deb;hp=7a5b9b813e0a02610421c22c8faa5a725700dc9c;hpb=10e87ee7f66b59a504c0ed2025463ba5faa69923;p=elogind.git diff --git a/src/path-lookup.c b/src/path-lookup.c index 7a5b9b813..4160d5586 100644 --- a/src/path-lookup.c +++ b/src/path-lookup.c @@ -96,7 +96,7 @@ static char** session_dirs(void) { * one. */ mkdir_parents(data_home, 0777); - symlink("../../../.config/systemd/session", data_home); + (void) symlink("../../../.config/systemd/session", data_home); } if ((e = getenv("XDG_DATA_DIRS"))) @@ -187,7 +187,7 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) { return -ENOMEM; } - if (running_as == MANAGER_INIT) { + if (running_as == MANAGER_SYSTEM) { /* /etc/init.d/ compatibility does not matter to users */ if ((e = getenv("SYSTEMD_SYSVINIT_PATH")))