httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1082250 - in /httpd/httpd/trunk: include/mpm_common.h server/mpm_common.c
Date Wed, 16 Mar 2011 18:30:40 GMT
Author: fuankg
Date: Wed Mar 16 18:30:40 2011
New Revision: 1082250

URL: http://svn.apache.org/viewvc?rev=1082250&view=rev
Log:
Added prototype for initgroups().

Modified:
    httpd/httpd/trunk/include/mpm_common.h
    httpd/httpd/trunk/server/mpm_common.c

Modified: httpd/httpd/trunk/include/mpm_common.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/mpm_common.h?rev=1082250&r1=1082249&r2=1082250&view=diff
==============================================================================
--- httpd/httpd/trunk/include/mpm_common.h (original)
+++ httpd/httpd/trunk/include/mpm_common.h Wed Mar 16 18:30:40 2011
@@ -199,6 +199,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
+ * @fn int initgroups(const char *name, gid_t basegid)
+ */
+int initgroups(const char *name, gid_t basegid);
+#endif
+
 typedef struct ap_pod_t ap_pod_t;
 
 struct ap_pod_t {

Modified: httpd/httpd/trunk/server/mpm_common.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm_common.c?rev=1082250&r1=1082249&r2=1082250&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm_common.c (original)
+++ httpd/httpd/trunk/server/mpm_common.c Wed Mar 16 18:30:40 2011
@@ -222,7 +222,7 @@ int initgroups(const char *name, gid_t b
     return setgroups(index, groups);
 #endif
 }
-#endif /* def NEED_INITGROUPS */
+#endif /* def HAVE_INITGROUPS */
 
 /* standard mpm configuration handling */
 const char *ap_pid_fname = NULL;



Mime
View raw message