From fc116c6a19877275eabb085cf03f0df23b17c0e9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 Feb 2011 16:29:04 +0100 Subject: util: beef up logic to find ctty name --- src/utmp-wtmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utmp-wtmp.c') diff --git a/src/utmp-wtmp.c b/src/utmp-wtmp.c index 83da640bf3..b03a3e70af 100644 --- a/src/utmp-wtmp.c +++ b/src/utmp-wtmp.c @@ -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" -- cgit v1.2.3-54-g00ecf