* src/passwd.c: Harmonize status report at the end of passwd.
Prefix the messages with "passwd: ", only indicate a password change if the password was actually changed, and password properties changed otherwise.
This commit is contained in:
parent
f8b8aaf5e4
commit
59e1947950
@ -1,3 +1,10 @@
|
||||
2009-04-28 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/passwd.c: Harmonize status report at the end of passwd.
|
||||
Prefix the messages with "passwd: ", only indicate a password
|
||||
change if the password was actually changed, and password
|
||||
properties changed otherwise.
|
||||
|
||||
2009-04-28 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/chgpasswd.c, src/newusers.c: There is no need to test for 0
|
||||
|
@ -1104,10 +1104,12 @@ int main (int argc, char **argv)
|
||||
SYSLOG ((LOG_INFO, "password for '%s' changed by '%s'", name, myname));
|
||||
closelog ();
|
||||
if (!qflg) {
|
||||
if (!eflg) {
|
||||
puts (_("Password changed."));
|
||||
if (!anyflag) {
|
||||
#ifndef USE_PAM
|
||||
printf (_("%s: password changed."), Prog);
|
||||
#endif /* USE_PAM */
|
||||
} else {
|
||||
puts (_("Password set to expire."));
|
||||
printf (_("%s: password properties changed."), Prog);
|
||||
}
|
||||
}
|
||||
exit (E_SUCCESS);
|
||||
|
Loading…
Reference in New Issue
Block a user