You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2012/09/30 17:48:25 UTC

svn commit: r1392047 - in /httpd/httpd/branches/2.0.x: include/mpm_common.h server/mpm_common.c

Author: jim
Date: Sun Sep 30 15:48:25 2012
New Revision: 1392047

URL: http://svn.apache.org/viewvc?rev=1392047&view=rev
Log:
initgroups

Modified:
    httpd/httpd/branches/2.0.x/include/mpm_common.h
    httpd/httpd/branches/2.0.x/server/mpm_common.c

Modified: httpd/httpd/branches/2.0.x/include/mpm_common.h
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/include/mpm_common.h?rev=1392047&r1=1392046&r2=1392047&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/include/mpm_common.h (original)
+++ httpd/httpd/branches/2.0.x/include/mpm_common.h Sun Sep 30 15:48:25 2012
@@ -161,6 +161,19 @@ AP_DECLARE(uid_t) ap_uname2id(const char
 AP_DECLARE(gid_t) ap_gname2id(const char *name);
 #endif
 
+#ifndef HAVE_INITGROUPS
+/**
+ * The initgroups() function initializes the group access list by reading the
+ * group database /etc/group and using all groups of which user is a member.
+ * The additional group basegid is also added to the list.
+ * @param name The user name - must be non-NULL
+ * @param basegid The basegid to add
+ * @return returns 0 on success
+ * @deffunc int initgroups(const char *name, gid_t basegid)
+ */
+int initgroups(const char *name, gid_t basegid);
+#endif
+
 #define AP_MPM_HARD_LIMITS_FILE APACHE_MPM_DIR "/mpm_default.h"
 
 #ifdef AP_MPM_USES_POD

Modified: httpd/httpd/branches/2.0.x/server/mpm_common.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/server/mpm_common.c?rev=1392047&r1=1392046&r2=1392047&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/server/mpm_common.c (original)
+++ httpd/httpd/branches/2.0.x/server/mpm_common.c Sun Sep 30 15:48:25 2012
@@ -453,7 +453,7 @@ int initgroups(const char *name, gid_t b
     return setgroups(index, groups);
 #endif /* def QNX */
 }
-#endif /* def NEED_INITGROUPS */
+#endif /* ndef HAVE_INITGROUPS */
 
 #ifdef AP_MPM_USES_POD