Use fputs rather than fprintf for constant strings.
This commit is contained in:
parent
0120fc10e1
commit
eeb9592ded
@ -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>
|
2008-05-21 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* man/login.1.xml: Indicate that login should be executed with
|
* man/login.1.xml: Indicate that login should be executed with
|
||||||
|
@ -70,7 +70,7 @@ void do_pam_passwd (const char *user, int silent, int change_expired)
|
|||||||
ret = pam_chauthtok (pamh, flags);
|
ret = pam_chauthtok (pamh, flags);
|
||||||
if (ret != PAM_SUCCESS) {
|
if (ret != PAM_SUCCESS) {
|
||||||
fprintf (stderr, _("passwd: %s\n"), pam_strerror (pamh, ret));
|
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);
|
pam_end (pamh, ret);
|
||||||
exit (10); /* XXX */
|
exit (10); /* XXX */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user