From f8679b385afba9e7996d3cb05f2e44db3fa45b54 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 3 Feb 2008 21:40:01 +0000 Subject: [PATCH] No need to check audit_fd, audit_logger() will take care of this. --- ChangeLog | 2 ++ src/usermod.c | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 91cfa866..407d2ee3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ /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 diff --git a/src/usermod.c b/src/usermod.c index 105d0e0d..e8049a9e 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -475,11 +475,9 @@ static void new_spent (struct spwd *spent) 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'",