]> granicus.if.org Git - shadow/commitdiff
Remove dead code. It was probably put here to add more
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 29 Dec 2007 10:50:03 +0000 (10:50 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 29 Dec 2007 10:50:03 +0000 (10:50 +0000)
information to the audit_logger.

ChangeLog
src/chage.c

index c4eda164d48c9312baa0c163fbd032e2124ec409..c3876000356716357924f9c9df3abe7653d8e94e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
        * src/chage.c: main() split in new functions: process_flags(),
        check_flags(), check_perms(), open_files(), and close_files().
        * src/chage.c: Avoid using a variable with the same name as a type.
+       * src/chage.c: Remove dead code. It was probably put here to add more
+       information to the audit_logger.
 
 2007-12-28  Nicolas François  <nicolas.francois@centraliens.net>
 
index 1dd3601888a0418174eae32d2edfbaf95e3bd125..d5629ccb68e8cbedac397ea5cab386f28192e22a 100644 (file)
@@ -652,14 +652,6 @@ int main (int argc, char **argv)
                                      "change min age", pw->pw_name, pw->pw_uid,
                                      1);
                if (dflg) {
-                       char new_lastchg[200];
-                       char old_lastchg[200];
-
-                       date_to_str (new_lastchg, sizeof new_lastchg,
-                                    lastday * DAY);
-                       date_to_str (old_lastchg, sizeof old_lastchg,
-                                    spwd.sp_lstchg * DAY);
-
                        audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
                                      "change last change date", pw->pw_name,
                                      pw->pw_uid, 1);
@@ -673,12 +665,6 @@ int main (int argc, char **argv)
                                      "change inactive days", pw->pw_name,
                                      pw->pw_uid, 1);
                if (Eflg) {
-                       char new_exp[200];
-                       char old_exp[200];
-
-                       date_to_str (new_exp, sizeof new_exp, expdays * DAY);
-                       date_to_str (old_exp, sizeof old_exp,
-                                    spwd.sp_expire * DAY);
                        audit_logger (AUDIT_USER_CHAUTHTOK, Prog,
                                      "change passwd expiration", pw->pw_name,
                                      pw->pw_uid, 1);