From: Stefan Fritsch Date: Sun, 9 Oct 2011 21:30:20 +0000 (+0000) Subject: Only dump User/Group if DUMP_RUN_CFG is defined X-Git-Tag: 2.3.15~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae843193ea2f29044ee14276cd6ccdf286af3f72;p=apache 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 --- 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);