summaryrefslogtreecommitdiffstats
path: root/server/mpm/experimental/perchild/perchild.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2002-04-22 20:57:12 +0200
committerRyan Bloom <rbb@apache.org>2002-04-22 20:57:12 +0200
commitbf8b6f0a80f8b0e02eb487aebbc16ec0faf06cf2 (patch)
tree67de34ead5439548acb5676b5618c5a5c2729d07 /server/mpm/experimental/perchild/perchild.c
parent Fix this optimization. We will skip along so long as we aren't at the (diff)
downloadapache2-bf8b6f0a80f8b0e02eb487aebbc16ec0faf06cf2.tar.xz
apache2-bf8b6f0a80f8b0e02eb487aebbc16ec0faf06cf2.zip
Fix perchild MPM so that it can be configured with the move to the
experimental directory. Fix perchild MPM so that it uses ap_gname2id for groups instead of ap_uname2id. Submitted by: Scott Lamb <slamb@slamb.org> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94760 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/experimental/perchild/perchild.c')
-rw-r--r--server/mpm/experimental/perchild/perchild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c
index f5afce62fa..0ac146dfcd 100644
--- a/server/mpm/experimental/perchild/perchild.c
+++ b/server/mpm/experimental/perchild/perchild.c
@@ -1834,7 +1834,7 @@ static const char *set_child_per_uid(cmd_parms *cmd, void *dummy, const char *u,
}
ug->uid = ap_uname2id(u);
- ug->gid = ap_uname2id(g);
+ ug->gid = ap_gname2id(g);
#ifndef BIG_SECURITY_HOLE
if (ug->uid == 0 || ug->gid == 0) {
@@ -1851,7 +1851,7 @@ static const char *assign_childuid(cmd_parms *cmd, void *dummy, const char *uid,
int i;
int matching = 0;
int u = ap_uname2id(uid);
- int g = ap_uname2id(gid);
+ int g = ap_gname2id(gid);
const char *errstr;
int socks[2];
perchild_server_conf *sconf = (perchild_server_conf *)