From eeb9592ded185f7c219486480756a49ba5d9b7e1 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 23 May 2008 20:55:11 +0000 Subject: [PATCH] Use fputs rather than fprintf for constant strings. --- ChangeLog | 5 +++++ libmisc/pam_pass.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 11162b68..5805bd46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-23 Nicolas François + + * libmisc/pam_pass.c: Use fputs rather than fprintf for constant + strings. + 2008-05-21 Nicolas François * man/login.1.xml: Indicate that login should be executed with diff --git a/libmisc/pam_pass.c b/libmisc/pam_pass.c index ea0f3a9e..2d2115c3 100644 --- a/libmisc/pam_pass.c +++ b/libmisc/pam_pass.c @@ -70,7 +70,7 @@ void do_pam_passwd (const char *user, int silent, int change_expired) ret = pam_chauthtok (pamh, flags); if (ret != PAM_SUCCESS) { fprintf (stderr, _("passwd: %s\n"), pam_strerror (pamh, ret)); - fprintf (stderr, _("passwd: password unchanged\n")); + fputs (_("passwd: password unchanged\n"), stderr); pam_end (pamh, ret); exit (10); /* XXX */ }