aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Monshouwer <mind04@monshouwer.org>2010-06-22 06:12:23 +0000
committermind04 <mind04@monshouwer.org>2010-06-22 06:12:23 +0000
commit57981b24cc2688a5dd637575c3fc01531c7fd90e (patch)
treeb1e0241608ed61e616f3128dd65b3b2adec110d6
parentDrop capabilities permanent after set[ug]id when MaxRequestsPerChild is set to 1 (diff)
downloadmod_ruid2-57981b24cc2688a5dd637575c3fc01531c7fd90e.tar.gz
small fix in coredump codemod_ruid2-0.8.2
git-svn-id: https://mod-ruid.svn.sourceforge.net/svnroot/mod-ruid@15 541e799a-c857-49a9-9955-d080b115f20d
-rw-r--r--mod_ruid2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mod_ruid2.c b/mod_ruid2.c
index 4b5af0b..e46e921 100644
--- a/mod_ruid2.c
+++ b/mod_ruid2.c
@@ -276,9 +276,7 @@ static void ruid_child_init (apr_pool_t *p, server_rec *s)
cap_mode = (ap_max_requests_per_child == 1 ? RUID_CAP_MODE_DROP : RUID_CAP_MODE_KEEP);
/* check if process is dumpable */
- if (prctl(PR_GET_DUMPABLE)) {
- coredump = 1;
- }
+ coredump = prctl(PR_GET_DUMPABLE);
}