mirror of
https://github.com/apache/httpd.git
synced 2025-08-13 14:27:28 +00:00
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:
@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user