Remove dead code. It was probably put here to add more
information to the audit_logger.
This commit is contained in:
parent
6ca79a36b0
commit
2d771a97b7
@ -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>
|
||||
|
||||
|
14
src/chage.c
14
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);
|
||||
|
Loading…
Reference in New Issue
Block a user