X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fmod-domaintree;a=blobdiff_plain;f=mod_domaintree.c;h=c0ddc066d9d36fc08d4d27ecfcf1caf6b0249c51;hp=4df18aa1b7e12a7ef85df9259fc9c56c107f030d;hb=c09f1ef5c45ae82bfc53473fb4ee4221d1a73e09;hpb=4588a0e053e94575152fce72ea0c69a8d9ce1ac1 diff --git a/mod_domaintree.c b/mod_domaintree.c index 4df18aa..c0ddc06 100644 --- a/mod_domaintree.c +++ b/mod_domaintree.c @@ -31,7 +31,8 @@ * DomainTreeAlias /*one/ /anyone/ * DomainTreeIgnore *.foo.com *.foo.co.uk * DomainTreeForbid html.* - * + * + * # e.g. a symlink to /home * DomainTreeSuexec * * @@ -95,9 +96,11 @@ module AP_MODULE_DECLARE_DATA domaintree_module; #ifndef HAVE_UNIX_SUEXEC # ifdef SUEXEC_BIN # define HAVE_UNIX_SUEXEC -# include "unixd.h" # endif #endif +#ifdef HAVE_UNIX_SUEXEC +# include "unixd.h" +#endif #define DBG 0 @@ -141,7 +144,7 @@ typedef struct { apr_global_mutex_t *lock; } dircache_t; -typedef apr_array_header_t *hostlist_t; +typedef apr_array_header_t *hostlist_t, *pathlist_t; typedef struct { server_rec *server; @@ -156,7 +159,7 @@ typedef struct { hostlist_t ignore; hostlist_t forbid; #ifdef HAVE_UNIX_SUEXEC - hostlist_t suexec; + pathlist_t suexec; #endif } domaintree_conf; @@ -575,7 +578,7 @@ static STATUS domaintree_hook_translate_name(request_rec *r) } #ifdef HAVE_UNIX_SUEXEC -static STATUS domaintree_hook_get_suexec_identity(const request_rec *r) +static ap_unix_identity_t *domaintree_hook_get_suexec_identity(const request_rec *r) { ap_unix_identity_t *ugid = NULL; #if APR_HAS_USER