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