diff options
author | Stefan Fritsch <sf@apache.org> | 2011-10-09 23:30:20 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-10-09 23:30:20 +0200 |
commit | ae843193ea2f29044ee14276cd6ccdf286af3f72 (patch) | |
tree | 9a645083d7496a4b16fe97878ab2d2866c6eccee /modules/arch | |
parent | s/perl/Perl/ (diff) | |
download | apache2-ae843193ea2f29044ee14276cd6ccdf286af3f72.tar.xz apache2-ae843193ea2f29044ee14276cd6ccdf286af3f72.zip |
Only dump User/Group if DUMP_RUN_CFG is defined
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180719 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch')
-rw-r--r-- | modules/arch/unix/mod_unixd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/arch/unix/mod_unixd.c b/modules/arch/unix/mod_unixd.c index 442dffc137..d30ac4f1ab 100644 --- a/modules/arch/unix/mod_unixd.c +++ b/modules/arch/unix/mod_unixd.c @@ -19,6 +19,7 @@ #include "http_config.h" #include "http_main.h" #include "http_log.h" +#include "http_core.h" #include "mpm_common.h" #include "os.h" #include "ap_mpm.h" @@ -377,6 +378,8 @@ static void unixd_dump_config(apr_pool_t *p, server_rec *s) apr_uid_t uid = ap_unixd_config.user_id; apr_gid_t gid = ap_unixd_config.group_id; char *no_root = ""; + if (!ap_exists_config_define("DUMP_RUN_CFG")) + return; if (geteuid() != 0) no_root = " not_used"; apr_file_open_stdout(&out, p); |