]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1021: Supplementary groups membership initialization for children processes
authorhno <>
Sun, 7 Nov 2004 05:09:19 +0000 (05:09 +0000)
committerhno <>
Sun, 7 Nov 2004 05:09:19 +0000 (05:09 +0000)
Incremental patch by Guido.

The original patch did not compile on systems without initgroups.

include/initgroups.h
lib/initgroups.c

index 8ac51fb39cee1bf9f85d36b6b95eb6a55ed731f7..cf3ef0852c8def5f25c2396a4e046d08d98b28e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: initgroups.h,v 1.1 2004/10/20 22:41:03 hno Exp $
+ * $Id: initgroups.h,v 1.2 2004/11/06 22:09:19 hno Exp $
  */
 #ifndef SQUID_INITGROUPS_H
 #define SQUID_INITGROUPS_H
@@ -13,5 +13,5 @@
 #include <sys/types.h>
 #endif
 
-extern int initgroups(const char *user, gid_t group);
+SQUIDCEXTERN int initgroups(const char *user, gid_t group);
 #endif /* SQUID_INITGROPS_H */
index ec84174385c268e9dabc681d8a3738b959372bc5..8cc8b6a0579dd72ca46f2e9019de450df1612411 100644 (file)
@@ -18,6 +18,9 @@
 #if HAVE_LIMITS_H
 #include <limits.h>
 #endif
+#if !HAVE_INITGROUPS
+#include "initgroups.h"
+#endif
 
 int initgroups(const char *name, gid_t basegid)
 {