From ae3d71fb944d5d1bc64196ad6c80fc387b389892 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 8 Mar 2024 00:33:19 +0100 Subject: [PATCH] src/passwd.c: Don't print the program name twice in a log entry OPENLOG() already sets the program name as the prefix. This resulted in entries like: $ journalctl 2>/dev/null | grep passwd Mar 03 01:09:47 debian passwd[140744]: passwd: can't view or modify password information for root Fixes: 8e167d28afd6 ("[svn-upgrade] Integrating new upstream version, shadow (4.0.8)") Signed-off-by: Alejandro Colomar --- src/passwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/passwd.c b/src/passwd.c index 63729f82d..5a4219371 100644 --- a/src/passwd.c +++ b/src/passwd.c @@ -1000,8 +1000,8 @@ int main (int argc, char **argv) _("%s: You may not view or modify password information for %s.\n"), Prog, name); SYSLOG ((LOG_WARN, - "%s: can't view or modify password information for %s", - Prog, name)); + "can't view or modify password information for %s", + name)); closelog (); exit (E_NOPERM); } -- 2.47.2