From 67a400fb6bcf5810e678dd9d6171d2bc93d06f8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Sat, 24 Apr 2004 19:42:52 +0000 Subject: [PATCH] readd suexec setuid and user check Related to PR: 28287 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103510 13f79535-47bb-0310-9956-ffa450edef68 --- os/unix/unixd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/os/unix/unixd.c b/os/unix/unixd.c index 6d43fe70f5..1d4c770bf0 100644 --- a/os/unix/unixd.c +++ b/os/unix/unixd.c @@ -213,10 +213,9 @@ AP_DECLARE(void) unixd_pre_config(apr_pool_t *ptemp) return; } - /* XXX - apr_stat is incapable of checking suid bits (grumble) */ - /* if ((wrapper.filetype & S_ISUID) && wrapper.user == 0) { */ + if ((wrapper.protection & APR_USETID) && wrapper.user == 0) { unixd_config.suexec_enabled = 1; - /* } */ + } } -- 2.50.1