From c08b0a69cc6db1f923353b008c24ef9ad86a5fd038f52c114520ca27a5dc59c0 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 20 Sep 2021 09:36:14 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=112 --- shadow-4.9-sgent-free.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/shadow-4.9-sgent-free.patch b/shadow-4.9-sgent-free.patch index 473a0f4..c5af36e 100644 --- a/shadow-4.9-sgent-free.patch +++ b/shadow-4.9-sgent-free.patch @@ -0,0 +1,23 @@ +Index: shadow-4.9/src/gpasswd.c +=================================================================== +--- shadow-4.9.orig/src/gpasswd.c ++++ shadow-4.9/src/gpasswd.c +@@ -1207,11 +1207,13 @@ int main (int argc, char **argv) + sssd_flush_cache (SSSD_DB_GROUP); + + #ifdef SHADOWGRP +- if (sgent.sg_adm) { +- xfree(sgent.sg_adm); +- } +- if (sgent.sg_mem) { +- xfree(sgent.sg_mem); ++ if(is_shadowgrp) { ++ if (sgent.sg_adm) { ++ xfree(sgent.sg_adm); ++ } ++ if (sgent.sg_mem) { ++ xfree(sgent.sg_mem); ++ } + } + #endif + if (grent.gr_mem) {