From: Alejandro Colomar Date: Thu, 7 Mar 2024 23:33:19 +0000 (+0100) Subject: src/passwd.c: Don't print the program name twice in a log entry X-Git-Tag: 4.15.1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae3d71fb944d5d1bc64196ad6c80fc387b389892;p=thirdparty%2Fshadow.git 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 --- 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); }