diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-12 03:33:08 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-12 03:33:08 +0100 |
commit | 7af53310dd9154ba76be7808292d9a046b849e43 (patch) | |
tree | 75a49739917317234ac91edf0f7306326fadddf7 /src/shutdownd.c | |
parent | 9d3e691e709eb12ce48a3dec6e50537406d12ad2 (diff) |
ask-password: don't show wall message on ttys we are already running a tty agent on
Diffstat (limited to 'src/shutdownd.c')
-rw-r--r-- | src/shutdownd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shutdownd.c b/src/shutdownd.c index bf69fb5367..143fa8d825 100644 --- a/src/shutdownd.c +++ b/src/shutdownd.c @@ -108,7 +108,7 @@ static void warn_wall(usec_t n, struct shutdownd_command *c) { return; if (c->wall_message[0]) - utmp_wall(c->wall_message); + utmp_wall(c->wall_message, NULL); else { char date[FORMAT_TIMESTAMP_MAX]; const char* prefix; @@ -126,7 +126,7 @@ static void warn_wall(usec_t n, struct shutdownd_command *c) { if (asprintf(&l, "%s%s!", prefix, format_timestamp(date, sizeof(date), c->elapse)) < 0) log_error("Failed to allocate wall message"); else { - utmp_wall(l); + utmp_wall(l, NULL); free(l); } } |