summaryrefslogtreecommitdiff
path: root/src/shutdownd
diff options
context:
space:
mode:
authorSebastian Thorarensen <sebth@naju.se>2014-03-14 00:38:05 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-14 21:27:33 +0100
commit9003d9b0d628be059922e522fd35f9c5b4d8b039 (patch)
tree3363d67fa31dcb4f83a1615eef66cdf160fb0256 /src/shutdownd
parent5a4d665ad679a8436f1210ba67d713a8f0b91b96 (diff)
utmp-wtmp: allow overriding username on wall
utmp_wall() now takes an optional argument 'username_override' which allows the caller to override the username shown on wall messages. journald will use this to inform users that its wall messages comes from 'systemd-journald'.
Diffstat (limited to 'src/shutdownd')
-rw-r--r--src/shutdownd/shutdownd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdownd/shutdownd.c b/src/shutdownd/shutdownd.c
index 8d034e6cca..fafd9ce32e 100644
--- a/src/shutdownd/shutdownd.c
+++ b/src/shutdownd/shutdownd.c
@@ -143,7 +143,7 @@ static void warn_wall(usec_t n, struct sd_shutdown_command *c) {
if (asprintf(&l, "%s%s%s%s!", c->wall_message, c->wall_message[0] ? "\n" : "",
prefix, format_timestamp(date, sizeof(date), c->usec)) >= 0)
- utmp_wall(l, NULL);
+ utmp_wall(l, NULL, NULL);
else
log_error("Failed to allocate wall message");
}