forked from pool/shadow
3317029e04
- Update to 4.9: * Updated translations * Major salt updates * Various coverity and cleanup fixes * Consistently use 0 to disable PASS_MIN_DAYS in man * Implement NSS support for subids and a libsubid * setfcap: retain setfcap when mapping uid 0 * login.defs: include HMAC_CRYPTO_ALGO key * selinux fixes * Fix path prefix path handling * Manpage updates * Treat an empty passwd field as invalid(Haelwenn Monnier) * newxidmap: allow running under alternative gid * usermod: check that shell is executable * Add yescript support * useradd memleak fixes * useradd: use built-in settings by default * getdefs: add foreign * buffer overflow fixes * Adding run-parts style for pre and post useradd/del - Refresh: * shadow-login_defs-unused-by-pam.patch * userdel-script.patch * useradd-script.patch * chkname-regex.patch * useradd-default.patch: bbf4b79 stopped shipping default file. change group in code now. * shadow-login_defs-suse.patch * useradd-userkeleton.patch - Remove because upstreamed: OBS-URL: https://build.opensuse.org/request/show/912915 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=106
22 lines
822 B
Diff
22 lines
822 B
Diff
Upstream commit: adb83f779618674e5e96e27e3d48559d62e2c410
|
|
To fix: https://github.com/shadow-maint/shadow/pull/398
|
|
Index: shadow-4.9/src/passwd.c
|
|
===================================================================
|
|
--- shadow-4.9.orig/src/passwd.c
|
|
+++ shadow-4.9/src/passwd.c
|
|
@@ -490,9 +490,12 @@ static void print_status (const struct p
|
|
((long long)sp->sp_max * SCALE) / DAY,
|
|
((long long)sp->sp_warn * SCALE) / DAY,
|
|
((long long)sp->sp_inact * SCALE) / DAY);
|
|
- } else {
|
|
+ } else if (NULL != pw->pw_passwd) {
|
|
(void) printf ("%s %s\n",
|
|
- pw->pw_name, pw_status (pw->pw_passwd));
|
|
+ pw->pw_name, pw_status (pw->pw_passwd));
|
|
+ } else {
|
|
+ (void) fprintf(stderr, _("%s: malformed password data obtained for user %s\n"),
|
|
+ Prog, pw->pw_name);
|
|
}
|
|
}
|
|
|