From 2d771a97b722ebb79b7b5dd99c2abf049174fbd5 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 29 Dec 2007 10:50:03 +0000 Subject: [PATCH] Remove dead code. It was probably put here to add more information to the audit_logger. --- ChangeLog | 2 ++ src/chage.c | 14 -------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index c4eda164..c3876000 100644 --- 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 diff --git a/src/chage.c b/src/chage.c index 1dd36018..d5629ccb 100644 --- a/src/chage.c +++ b/src/chage.c @@ -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);