rbb 00/10/24 09:11:24
Modified: src/os/unix suexec.c suexec.h Log: Remove some warnings added with suexec Revision Changes Path 1.2 +3 -3 apache-2.0/src/os/unix/suexec.c Index: suexec.c =================================================================== RCS file: /home/cvs/apache-2.0/src/os/unix/suexec.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- suexec.c 2000/10/23 15:30:55 1.1 +++ suexec.c 2000/10/24 16:11:21 1.2 @@ -30,12 +30,12 @@ AP_DECLARE(apr_status_t) ap_unix_create_privileged_process( apr_proc_t *newproc, const char *progname, - char *const args[], char **env, + char *const *args, char **env, apr_procattr_t *attr, ap_unix_identity_t *ugid, apr_pool_t *p) { int i = 0; - const char ** newargs; + char **newargs; char *newprogname; char *execuser, *execgroup; @@ -61,7 +61,7 @@ newargs[0] = SUEXEC_BIN; newargs[1] = execuser; newargs[2] = execgroup; - newargs[3] = progname; + newargs[3] = apr_pstrdup(p, progname); i = 0; do { 1.2 +1 -1 apache-2.0/src/os/unix/suexec.h Index: suexec.h =================================================================== RCS file: /home/cvs/apache-2.0/src/os/unix/suexec.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- suexec.h 2000/10/23 15:30:55 1.1 +++ suexec.h 2000/10/24 16:11:22 1.2 @@ -29,7 +29,7 @@ */ AP_DECLARE(apr_status_t) ap_unix_create_privileged_process( apr_proc_t *newproc, const char *progname, - char *const args[], char **env, + char *const *args, char **env, apr_procattr_t *attr, ap_unix_identity_t *ugid, apr_pool_t *p); #endif /* !APACHE_OS_UNIX_SUEXEC_H */