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: 8e167d28af ("[svn-upgrade] Integrating new upstream version, shadow (4.0.8)")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-03-08 00:33:19 +01:00
committed by Serge Hallyn
parent 4959cd10ae
commit ae3d71fb94
+2 -2
View 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);
}