]> granicus.if.org Git - apache/commitdiff
Only dump User/Group if DUMP_RUN_CFG is defined
authorStefan Fritsch <sf@apache.org>
Sun, 9 Oct 2011 21:30:20 +0000 (21:30 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 9 Oct 2011 21:30:20 +0000 (21:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180719 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/unix/mod_unixd.c

index 442dffc1371ca5ed0292b0f71c19e67166c013ea..d30ac4f1abc408b515dd8ee38a941381282e78a0 100644 (file)
@@ -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);