forked from pool/shadow
This commit is contained in:
parent
1864140f9d
commit
c08b0a69cc
@ -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) {
|
Loading…
Reference in New Issue
Block a user