From: Lennart Poettering Date: Tue, 24 Apr 2018 16:16:14 +0000 (+0200) Subject: logind: (void)ify all things we knowingly ignore X-Git-Tag: v239~339^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90b8a009a7a532b4a60ecb114466b1704156cf53;p=thirdparty%2Fsystemd.git logind: (void)ify all things we knowingly ignore --- diff --git a/src/login/logind.c b/src/login/logind.c index b0fd3f9cc57..385c9773995 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -1221,14 +1221,12 @@ 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. */ - 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);