* 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>
"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);
"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);