From 9003d9b0d628be059922e522fd35f9c5b4d8b039 Mon Sep 17 00:00:00 2001 From: Sebastian Thorarensen Date: Fri, 14 Mar 2014 00:38:05 +0100 Subject: 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'. --- src/shared/utmp-wtmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/utmp-wtmp.h') diff --git a/src/shared/utmp-wtmp.h b/src/shared/utmp-wtmp.h index 5924023203..040a16e746 100644 --- a/src/shared/utmp-wtmp.h +++ b/src/shared/utmp-wtmp.h @@ -32,4 +32,4 @@ int utmp_put_runlevel(int runlevel, int previous); int utmp_put_dead_process(const char *id, pid_t pid, int code, int status); int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line); -int utmp_wall(const char *message, bool (*match_tty)(const char *tty)); +int utmp_wall(const char *message, const char *username, bool (*match_tty)(const char *tty)); -- cgit v1.2.3-54-g00ecf