summaryrefslogtreecommitdiff
path: root/src/utmp-wtmp.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-17 16:29:04 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-17 16:29:04 +0100
commitfc116c6a19877275eabb085cf03f0df23b17c0e9 (patch)
treef230c08a0ef01803a582141210798447bb8ce719 /src/utmp-wtmp.c
parent4ff21d85822b521ed6741ef88cb4aaa384539dec (diff)
util: beef up logic to find ctty name
Diffstat (limited to 'src/utmp-wtmp.c')
-rw-r--r--src/utmp-wtmp.c2
1 files changed, 1 insertions, 1 deletions
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"