Browse code

[PATCH] Remove AllowSupplementaryGroups

I got rid of AllowSupplementaryGroups in commit 2ea4230df21c ("bb11557 - drop
AllowSupplementaryGroups option and make it default, patch by Sebastian A.
Siewior") but it sneaked in again.

Remove AllowSupplementaryGroups because it should be default now.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

Sebastian Andrzej Siewior authored on 2018/07/11 23:08:22
Showing 1 changed files
... ...
@@ -152,20 +152,14 @@ int download_with_opts(struct optstruct *opts, const char* db_path, const char*
152 152
             return FCE_USERINFO;
153 153
         }
154 154
         
155
-        if (optget (opts, "AllowSupplementaryGroups")->enabled)
156
-        {
157 155
 #ifdef HAVE_INITGROUPS
158
-            if (initgroups (dbowner, user->pw_gid))
159
-            {
160
-                logg ("^initgroups() failed.\n");
161
-                optfree (opts);
162
-                return FCE_USERORGROUP;
163
-            }
156
+	if (initgroups (dbowner, user->pw_gid))
157
+	{
158
+		logg ("^initgroups() failed.\n");
159
+		optfree (opts);
160
+		return FCE_USERORGROUP;
161
+	}
164 162
 #endif
165
-        }
166
-        else
167
-        {
168
-        }
169 163
     }
170 164
 #endif /* HAVE_PWD_H */
171 165