forked from pool/shadow
975cbcc7b2
longer available. OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=182
29 lines
772 B
Diff
29 lines
772 B
Diff
Index: shadow-4.5/src/lastlog.c
|
|
===================================================================
|
|
--- shadow-4.5.orig/src/lastlog.c
|
|
+++ shadow-4.5/src/lastlog.c
|
|
@@ -221,12 +221,15 @@ static void update_one (/*@null@*/const
|
|
strcpy (ll.ll_host, "localhost");
|
|
#endif
|
|
strcpy (ll.ll_line, "lastlog");
|
|
+/*
|
|
#ifdef WITH_AUDIT
|
|
audit_logger (AUDIT_ACCT_UNLOCK, Prog,
|
|
"clearing-lastlog",
|
|
pw->pw_name, (unsigned int) pw->pw_uid, SHADOW_AUDIT_SUCCESS);
|
|
#endif
|
|
+*/
|
|
}
|
|
+/*
|
|
#ifdef WITH_AUDIT
|
|
else {
|
|
audit_logger (AUDIT_ACCT_UNLOCK, Prog,
|
|
@@ -234,6 +237,7 @@ static void update_one (/*@null@*/const
|
|
pw->pw_name, (unsigned int) pw->pw_uid, SHADOW_AUDIT_SUCCESS);
|
|
}
|
|
#endif
|
|
+*/
|
|
|
|
if (fwrite (&ll, sizeof(ll), 1, lastlogfile) != 1) {
|
|
fprintf (stderr,
|