diff options
author | Ryan Bloom <rbb@apache.org> | 2001-01-29 19:42:16 +0000 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2001-01-29 19:42:16 +0000 |
commit | 47b513e45dac3fc43bddee70df9fdea2fafe6444 (patch) | |
tree | 7353f154e021d6db971333be1c0fa094db41507b /modules/generators/mod_cgid.c | |
parent | 945b31825092ad41147eb6f739f5e6eaeb7c7730 (diff) | |
download | httpd-47b513e45dac3fc43bddee70df9fdea2fafe6444.tar.gz |
Clean up the cgid module now that it supports suexec.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87910 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators/mod_cgid.c')
-rw-r--r-- | modules/generators/mod_cgid.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index c91d940c4b..625dd13025 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -91,6 +91,7 @@ #include "http_conf_globals.h" #include "ap_mpm.h" #include "unixd.h" +#include "mod_suexec.h" #include <sys/stat.h> #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> @@ -149,11 +150,6 @@ typedef struct { int bufbytes; } cgid_server_conf; -typedef struct { - ap_unix_identity_t ugid; - int active; -} suexec_config_t; - /* If a request includes query info in the URL (stuff after "?"), and * the query info does not contain "=" (indicative of a FORM submission), * then this routine is called to create the argument list to be passed @@ -273,15 +269,11 @@ static void get_req(int fd, request_rec *r, char **filename, char **argv0, char if (suexec_mod) { suexec_config_t *suexec_cfg = apr_pcalloc(r->pool, sizeof(*suexec_cfg)); - int temp; read(fd, &i, sizeof(int)); - read(fd, &temp, sizeof(uid_t)); - suexec_cfg->ugid.uid = temp; - read(fd, &temp, sizeof(gid_t)); - suexec_cfg->ugid.gid = temp; - read(fd, &temp, sizeof(int)); - suexec_cfg->active = temp; + read(fd, &suexec_cfg->ugid.uid, sizeof(uid_t)); + read(fd, &suexec_cfg->ugid.gid, sizeof(gid_t)); + read(fd, &suexec_cfg->active, sizeof(int)); dconf[i] = (void *)suexec_cfg; } |