|
|||||||||||
|
DO NOT REPLY [Bug 7791] - mod_suexec problem
From: <bugzilla(at)apache.org>
Date: Sat May 25 2002 - 20:56:04 EDT
mod_suexec problem
/path/to/suexec (~)uid gid cmdname argv0 argv1 argv2
and so on. Previously in 1.3 it was :
/path/to/suexec (~)uid gid argv0 argv1 argv2
and argv0 was assumed to == cmdname. This patch reverts to the previous behaviour. Index: os/unix/unixd.c RCS file: /home/cvspublic/httpd-2.0/os/unix/unixd.c,v retrieving revision 1.52 diff -u -u -r1.52 unixd.c
--- os/unix/unixd.c 17 May 2002 11:33:10 -0000 1.52
+++ os/unix/unixd.c 26 May 2002 00:47:29 -0000
@@ -350,16 +350,16 @@
}
}
/* allocate space for 4 new args, the input args, and a null terminator */
- newargs = apr_palloc(p, sizeof(char *) * (i + 5));
+ newargs = apr_palloc(p, sizeof(char *) * (i + 4));
newprogname = SUEXEC_BIN;
newargs[0] = SUEXEC_BIN;
newargs[1] = execuser;
newargs[2] = execgroup;
newargs[3] = apr_pstrdup(p, progname);
return apr_proc_create(newproc, newprogname, newargs, env, attr, p); To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org Received on Sun May 26 00:55:58 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:43:38 EDT |
||||||||||
|
|||||||||||