Make mod_cgi and mod_include work when compiled as DSO's again. This is

accomplished by moving suexec out of it's own file and into unixd.[ch].
The problem was that suexec.c wasn't being linked into the server unless
a module was actually using ap_os_create_process.  This is still not clean,
but it works now.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Bloom
2000-10-31 00:47:24 +00:00
parent 511d2c481c
commit e4fe63f3df
5 changed files with 85 additions and 3 deletions

View File

@ -64,6 +64,20 @@
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#include "ap_hooks.h"
#include "apr_thread_proc.h"
#include <pwd.h>
#include <grp.h>
#include <sys/types.h>
typedef struct {
uid_t uid;
gid_t gid;
} ap_unix_identity_t;
AP_DECLARE_HOOK(ap_unix_identity_t *, get_suexec_identity,(const request_rec *r)
)
/* common stuff that unix MPMs will want */