From: hno <> Date: Sun, 7 Nov 2004 05:09:19 +0000 (+0000) Subject: Bug #1021: Supplementary groups membership initialization for children processes X-Git-Tag: SQUID_3_0_PRE4~1002 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f77f47bb34211a4ac30c3f0e46cf159e74310878;p=thirdparty%2Fsquid.git Bug #1021: Supplementary groups membership initialization for children processes Incremental patch by Guido. The original patch did not compile on systems without initgroups. --- diff --git a/include/initgroups.h b/include/initgroups.h index 8ac51fb39c..cf3ef0852c 100644 --- a/include/initgroups.h +++ b/include/initgroups.h @@ -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 #endif -extern int initgroups(const char *user, gid_t group); +SQUIDCEXTERN int initgroups(const char *user, gid_t group); #endif /* SQUID_INITGROPS_H */ diff --git a/lib/initgroups.c b/lib/initgroups.c index ec84174385..8cc8b6a057 100644 --- a/lib/initgroups.c +++ b/lib/initgroups.c @@ -18,6 +18,9 @@ #if HAVE_LIMITS_H #include #endif +#if !HAVE_INITGROUPS +#include "initgroups.h" +#endif int initgroups(const char *name, gid_t basegid) {