1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-22 06:22:06 +03:00

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
This commit is contained in:
Ryan Bloom
2002-04-22 18:57:12 +00:00
parent ab67ee4456
commit bf8b6f0a80
3 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
Changes with Apache 2.0.36
*) Fix perchild MPM so that it can be configured with the move to the
experimental directory. [Scott Lamb <slamb@slamb.org>]
*) Fix perchild MPM so that it uses ap_gname2id for groups instead of
ap_uname2id. [Scott Lamb <slamb@slamb.org>]
*) Fix AcceptPathInfo. PR 8234 [Cliff Woolley]
*) [Security] Added the APLOG_TOCLIENT flag to ap_log_rerror() to

View File

@@ -2,5 +2,5 @@ dnl ## XXX - Need a more thorough check of the proper flags to use
if test "$MPM_NAME" = "perchild" ; then
APACHE_FAST_OUTPUT(server/mpm/$MPM_NAME/Makefile)
APACHE_FAST_OUTPUT(server/mpm/$MPM_SUBDIR_NAME/Makefile)
fi

View File

@@ -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 *)