diff options
author | Sebastian Thorarensen <sebth@naju.se> | 2014-03-14 00:38:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-14 21:27:33 +0100 |
commit | 9003d9b0d628be059922e522fd35f9c5b4d8b039 (patch) | |
tree | 3363d67fa31dcb4f83a1615eef66cdf160fb0256 /src/shared/utmp-wtmp.h | |
parent | 5a4d665ad679a8436f1210ba67d713a8f0b91b96 (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/shared/utmp-wtmp.h')
-rw-r--r-- | src/shared/utmp-wtmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |