chiark / gitweb /
sd-login: build test code again
[elogind.git] / src / utmp-wtmp.c
index 83da640bf351c148f290592b726d8ab39d175bb0..b03a3e70af9dbf8180a78763a420a6de5dcd6d92 100644 (file)
@@ -370,7 +370,7 @@ int utmp_wall(const char *message, bool (*match_tty)(const char *tty)) {
                 goto finish;
         }
 
-        getttyname_malloc(&tty);
+        getttyname_harder(STDIN_FILENO, &tty);
 
         if (asprintf(&text,
                      "\a\r\n"