chiark / gitweb /
treewide: use stdio_unset_cloexec() function
[elogind.git] / src / login / logind-utmp.c
index 8c2bfb07a19cbfa7405b5b8744310f2a2af4006a..d959a4a45496959922e184da5349180823b39fbd 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 /***
   This file is part of systemd.
 
@@ -67,7 +65,7 @@ bool logind_wall_tty_filter(const char *tty, void *userdata) {
 
         assert(m);
 
-        if (!startswith(tty, "/dev/"))
+        if (!startswith(tty, "/dev/") || !m->scheduled_shutdown_tty)
                 return true;
 
         return !streq(tty + 5, m->scheduled_shutdown_tty);