]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
No need to check audit_fd, audit_logger() will take care of this.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 3 Feb 2008 21:40:01 +0000 (21:40 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 3 Feb 2008 21:40:01 +0000 (21:40 +0000)
ChangeLog
src/usermod.c

index 91cfa86689284b1c30dbb08ddc96a51842ef3427..407d2ee3e72f523aa7726f37473656a45666e772 100644 (file)
--- 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  <nicolas.francois@centraliens.net>
 
index 105d0e0d66067532d0af087330fae644c6008f89..e8049a9e90e07ca42d54270f8afc6b6ed5fa56b3 100644 (file)
@@ -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'",