[Pkg-shadow-commits] r1550 - in upstream/trunk: . src
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sat Dec 29 10:50:03 UTC 2007
Author: nekral-guest
Date: 2007-12-29 10:50:03 +0000 (Sat, 29 Dec 2007)
New Revision: 1550
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/chage.c
Log:
Remove dead code. It was probably put here to add more
information to the audit_logger.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2007-12-29 10:47:04 UTC (rev 1549)
+++ upstream/trunk/ChangeLog 2007-12-29 10:50:03 UTC (rev 1550)
@@ -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 at centraliens.net>
Modified: upstream/trunk/src/chage.c
===================================================================
--- upstream/trunk/src/chage.c 2007-12-29 10:47:04 UTC (rev 1549)
+++ upstream/trunk/src/chage.c 2007-12-29 10:50:03 UTC (rev 1550)
@@ -652,14 +652,6 @@
"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 @@
"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);
More information about the Pkg-shadow-commits
mailing list