* chsh: do not warn about blank shell * lib/: Use strisdigit() instead of its pattern * lib/string/ctype/strisascii/: strisdigit(): Add function * lib/string/: Add comments expanding the letter-soup API names * lib/basename.c: Basename(): Use stprcspn() instead of its pattern * lib/string/strspn/, lib/, src/: stprspn(), strrspn_(): Split API into function and macro * lib/string/strspn/, lib/, src/: Move *spn() APIs to separate subdir * lib/string/strchr/: strrcspn(), stprcspn(): Add function and macro * src/useradd.c: Use !strcaseeq() instead of its pattern * lib/, src/: Use strcaseeq() instead of its pattern * lib/string/strcmp/: strcaseeq(): Add function * man/useradd.8.xml: Document new exit code 19 (E_BAD_NAME) * src/useradd.c: E_BAD_NAME: Use a different error code for bad login names * src/useradd.c: create_home(): Use !streq() instead of its pattern * lib/chkname.c: is_valid_name(): Use streq() instead of its pattern * configure.ac, lib/: Use __has_include(<gshadow.h>) instead of HAVE_GSHADOW_H * configure.ac: Remove unused AC_CHECK_HEADERS() checks * configure.ac, lib/: Use __has_include(<sys/capability.h>) instead of HAVE_SYS_CAPABILITY_H * lib/idmapping.c: Unconditionally include <sys/prctl.h> * lib/: Use __has_include(<security/openpam.h>) instead of HAVE_SECURITY_OPENPAM_H * lib/: Use __has_include(<security/pam_misc.h>) instead of HAVE_SECURITY_PAM_MISC_H * configure.ac, lib/: Use __has_include(<sys/random.h>) instead of HAVE_SYS_RANDOM_H * configure.ac, lib/: Use __has_include(<crypt.h>) instead of HAVE_CRYPT_H * lib/, src/: motd(): Report errors instead of exiting from library code * lib/motd.c: motd(): Invert logic to reduce indentation * lib/, src/, doc/: Remove pw_auth()'s $3 as dead code * lib/pwauth.*: PW_{ADD,CHANGE,DELETE,FTP,REXEC}: Remove dead code * lib/, src/, doc/: Remove dead code * src/vipw.c: Restore the original terminal pgrp after editing OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=193
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,
|