Use fputs rather than fprintf for constant strings.

This commit is contained in:
nekral-guest 2008-05-23 20:55:11 +00:00
parent 0120fc10e1
commit eeb9592ded
2 changed files with 6 additions and 1 deletions

View File

@ -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

View 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 */
}