]> granicus.if.org Git - shadow/commitdiff
Use fputs rather than fprintf for constant strings.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 23 May 2008 20:55:11 +0000 (20:55 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 23 May 2008 20:55:11 +0000 (20:55 +0000)
ChangeLog
libmisc/pam_pass.c

index 11162b6842bc163c6b2b042c055f74fc00a1759a..5805bd46ed21122097164539b8166932cc79fb1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-23  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/pam_pass.c: Use fputs rather than fprintf for constant
+       strings.
+
 2008-05-21  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/login.1.xml: Indicate that login should be executed with
index ea0f3a9e8affcafa1729d19db0a0867484385a9b..2d2115c32175243985748b79f1311f565a918d7f 100644 (file)
@@ -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 */
        }