2ad7a94d8c
* Fix the lower part of the domain of csrand_uniform() * Fix use of volatile pointer * Use 'dist-hook' to clean up <tests/unit/Makefile> * Use str2[u]l() instead of atoi(3) * Use a2i() in various places * Fix const correctness * Use uid_t for holding UIDs (and GIDs) * Move all sprintf(3)-like APIs to a subdirectory * Move all copying APIs to a subdirectory * Fix forever loop on ENOMEM * Fix REALLOC() nmemb calculation * Remove id(1) * Remove groups(1) * Use local time for human-readable dates * Use %F instead of %Y-%m-%d with strftime(3) * is_valid{user,group}_name(): Set errno to distinguish the reasons * Recommend --badname only if it is useful * Add fmkomstemp() to fix mode of </etc/default/useradd> * Fix use-after-free bug in sgetgrent() * Update Catalan translation * Remove references to cppw, cpgr * groupadd, groupmod: Update gshadow file with -U * Added option -a for listing active users only, optimized using if aflg,return * Added information in lastlog man page for new option '-a' * Plenty of code cleanup and clarifications - Update to 4.17.0 RC1: Pre-release without changelog OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=184
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,
|