From 17d66ccc7516a5e2cf681abc73406559da41eaae Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 6 Mar 2015 12:15:23 +0100 Subject: [PATCH] logger: use username as the default tag Reported-by: Rainer Gerhards Signed-off-by: Karel Zak --- misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 81581300e4..308db8b34d 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -474,7 +474,7 @@ static void syslog_local(const struct logger_ctl *ctl, const char *msg) char pid[32]; int len; - tag = ctl->tag ? ctl->tag : program_invocation_short_name; + tag = ctl->tag ? ctl->tag : xgetlogin(); if (ctl->pid) snprintf(pid, sizeof(pid), "[%d]", ctl->pid); -- 2.47.2