* 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:
nekral-guest 2009-04-28 20:46:35 +00:00
parent f8b8aaf5e4
commit 59e1947950
2 changed files with 12 additions and 3 deletions

View File

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

View File

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