mirror of
https://github.com/apache/httpd.git
synced 2025-07-25 17:01:22 +00:00
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
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user