forked from pool/shadow
9d0c114d24
* Add shadow-4.9-newgrp-segfault.patch https://github.com/shadow-maint/shadow/pull/437 * Add shadow-4.9-pwck-segfault.patch https://github.com/shadow-maint/shadow/pull/445 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=116
16 lines
549 B
Diff
16 lines
549 B
Diff
https://github.com/shadow-maint/shadow/commit/497e90751bc0d95cc998b0f06305040563903948
|
|
Index: shadow-4.9/src/newgrp.c
|
|
===================================================================
|
|
--- shadow-4.9.orig/src/newgrp.c
|
|
+++ shadow-4.9/src/newgrp.c
|
|
@@ -163,8 +163,8 @@ static void check_perms (const struct gr
|
|
spwd = xgetspnam (pwd->pw_name);
|
|
if (NULL != spwd) {
|
|
pwd->pw_passwd = xstrdup (spwd->sp_pwdp);
|
|
+ spw_free (spwd);
|
|
}
|
|
- spw_free (spwd);
|
|
|
|
if ((pwd->pw_passwd[0] == '\0') && (grp->gr_passwd[0] != '\0')) {
|
|
needspasswd = true;
|