httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1180719 - /httpd/httpd/trunk/modules/arch/unix/mod_unixd.c
Date Sun, 09 Oct 2011 21:30:20 GMT
Author: sf
Date: Sun Oct  9 21:30:20 2011
New Revision: 1180719

URL: http://svn.apache.org/viewvc?rev=1180719&view=rev
Log:
Only dump User/Group if DUMP_RUN_CFG is defined

Modified:
    httpd/httpd/trunk/modules/arch/unix/mod_unixd.c

Modified: httpd/httpd/trunk/modules/arch/unix/mod_unixd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/unix/mod_unixd.c?rev=1180719&r1=1180718&r2=1180719&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/unix/mod_unixd.c (original)
+++ httpd/httpd/trunk/modules/arch/unix/mod_unixd.c Sun Oct  9 21:30:20 2011
@@ -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
     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);



Mime
View raw message