From 56163f66d8440ba15e99143c2336531b5916c48b Mon Sep 17 00:00:00 2001 From: knox Date: Sun, 29 Nov 2015 17:20:43 +0100 Subject: [PATCH] fixed ownership of cgi-bin symlink created by suexec-workaround see http://manpages.debian.org/cgi-bin/man.cgi?apropos=0&format=html&query=chown&sektion=1&locale=en --- scripts/jobs/cron_tasks.inc.http.10.apache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jobs/cron_tasks.inc.http.10.apache.php b/scripts/jobs/cron_tasks.inc.http.10.apache.php index 3b79366a..82f36bb2 100644 --- a/scripts/jobs/cron_tasks.inc.http.10.apache.php +++ b/scripts/jobs/cron_tasks.inc.http.10.apache.php @@ -1060,7 +1060,7 @@ class apache extends HttpConfigBase { if (!file_exists($perlsymlink)) { safe_exec('ln -s '.escapeshellarg($suexecpath).' '.escapeshellarg($perlsymlink)); } - safe_exec('chown '.escapeshellarg($row_diroptions['guid']).':'.escapeshellarg($row_diroptions['guid']).' '.escapeshellarg($perlsymlink)); + safe_exec('chown -h '.escapeshellarg($row_diroptions['guid']).':'.escapeshellarg($row_diroptions['guid']).' '.escapeshellarg($perlsymlink)); } } else { // if no perl-execution is enabled but the workaround is,