diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-04-24 18:16:14 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | f7c4b285b404855b24972e3a0e280cebceb41bca (patch) | |
tree | 24307fe2895fe4c339e172e009edc93c960fad66 | |
parent | 9b3847c976625d0f60e513f762468de2443a2459 (diff) |
logind: (void)ify all things we knowingly ignore
-rw-r--r-- | src/login/logind.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/login/logind.c b/src/login/logind.c index 1687891d0..dfd657de7 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1294,15 +1294,16 @@ int main(int argc, char *argv[]) { goto finish; } - /* Always create the directories people can create inotify - * watches in. Note that some applications might check for the - * existence of /run/systemd/seats/ to determine whether - * logind is available, so please always make sure this check - * stays in. */ #if 0 /// elogind can not rely on systemd to help, so we need a bit more effort than this mkdir_label("/run/systemd/seats", 0755); mkdir_label("/run/systemd/users", 0755); mkdir_label("/run/systemd/sessions", 0755); + /* Always create the directories people can create inotify watches in. Note that some applications might check + * for the existence of /run/systemd/seats/ to determine whether logind is available, so please always make + * sure these directories are created early on and unconditionally. */ + (void) mkdir_label("/run/systemd/seats", 0755); + (void) mkdir_label("/run/systemd/users", 0755); + (void) mkdir_label("/run/systemd/sessions", 0755); assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGHUP, SIGTERM, SIGINT, -1) >= 0); |