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
This commit is contained in:
knox
2015-11-29 17:20:43 +01:00
parent 7357029a28
commit 56163f66d8

View File

@@ -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,