/etc/shadow to human readable dates.
* src/usermod.c: Really log the expiration date change as human
readable strings instead of integers.
+ * src/usermod.c: No need to check audit_fd, audit_logger() will
+ take care of this.
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
date_to_str (old_exp, sizeof(16),
user_expire * DAY, "never");
#ifdef WITH_AUDIT
- if (audit_fd >= 0) {
- audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
- "changing expiration date", user_newname,
- user_newid, 1);
- }
+ audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
+ "changing expiration date", user_newname,
+ user_newid, 1);
#endif
SYSLOG ((LOG_INFO,
"change user `%s' expiration from `%s' to `%s'",