chiark / gitweb /
utmp-wtmp: allow overriding username on wall
[elogind.git] / src / shutdownd / shutdownd.c
index 8d034e6cca564857ea7d1794bcb0ecf47222fc0e..fafd9ce32eca9736055fd7d69dd32400c13e8be3 100644 (file)
@@ -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");
 }