No need to check audit_fd, audit_logger() will take care of this.
This commit is contained in:
parent
ae5db5d36b
commit
f8679b385a
@ -4,6 +4,8 @@
|
|||||||
/etc/shadow to human readable dates.
|
/etc/shadow to human readable dates.
|
||||||
* src/usermod.c: Really log the expiration date change as human
|
* src/usermod.c: Really log the expiration date change as human
|
||||||
readable strings instead of integers.
|
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>
|
2008-02-03 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -475,11 +475,9 @@ static void new_spent (struct spwd *spent)
|
|||||||
date_to_str (old_exp, sizeof(16),
|
date_to_str (old_exp, sizeof(16),
|
||||||
user_expire * DAY, "never");
|
user_expire * DAY, "never");
|
||||||
#ifdef WITH_AUDIT
|
#ifdef WITH_AUDIT
|
||||||
if (audit_fd >= 0) {
|
audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
|
||||||
audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
|
"changing expiration date", user_newname,
|
||||||
"changing expiration date", user_newname,
|
user_newid, 1);
|
||||||
user_newid, 1);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
SYSLOG ((LOG_INFO,
|
SYSLOG ((LOG_INFO,
|
||||||
"change user `%s' expiration from `%s' to `%s'",
|
"change user `%s' expiration from `%s' to `%s'",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user