]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/logind-utmp.c
Rename formats-util.h to format-util.h
[thirdparty/systemd.git] / src / login / logind-utmp.c
index 3bd61a81fd5379a24c06565589f2118bac3316fb..311751c2db2035d1d8691dff71661c1d2f492e5d 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 /***
   This file is part of systemd.
 
@@ -31,7 +29,7 @@
 #include "bus-common-errors.h"
 #include "bus-error.h"
 #include "bus-util.h"
-#include "formats-util.h"
+#include "format-util.h"
 #include "logind.h"
 #include "special.h"
 #include "strv.h"
@@ -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);