]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/passwd.c: Don't print the program name twice in a log entry
authorAlejandro Colomar <alx@kernel.org>
Thu, 7 Mar 2024 23:33:19 +0000 (00:33 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 14 Mar 2024 21:01:32 +0000 (16:01 -0500)
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 <alx@kernel.org>
src/passwd.c

index 63729f82db66985719b137a91b094eed97460394..5a42193710befba66876deaf7cf2405b8e5de211 100644 (file)
@@ -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);
        }