From: nekral-guest Date: Fri, 23 May 2008 20:55:11 +0000 (+0000) Subject: Use fputs rather than fprintf for constant strings. X-Git-Tag: 4.1.2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eeb9592ded185f7c219486480756a49ba5d9b7e1;p=shadow Use fputs rather than fprintf for constant strings. --- 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 */ }