summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-03-08 00:33:19 +0100
committerSerge Hallyn <serge@hallyn.com>2024-03-14 16:01:32 -0500
commitae3d71fb944d5d1bc64196ad6c80fc387b389892 (patch)
tree41cbceff542521926ad93de0f60fc8d686b2a231
parent4959cd10ae02e6fcdcda1726befd194feebeaf16 (diff)
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 <alx@kernel.org>
-rw-r--r--src/passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passwd.c b/src/passwd.c
index 63729f82..5a421937 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);
}