From 1c94011502fa81abf0e6c84f6b6a1567bf0a3227 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 21 Jun 2009 12:34:02 +0000 Subject: [PATCH] "only delete header, if it does exist and is NOT writable (otherwise the header is owned by the user running the script)" --- setup/inc/class.setup_cmd_header.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/inc/class.setup_cmd_header.inc.php b/setup/inc/class.setup_cmd_header.inc.php index 6a4de645a2..92756eeef5 100644 --- a/setup/inc/class.setup_cmd_header.inc.php +++ b/setup/inc/class.setup_cmd_header.inc.php @@ -138,7 +138,7 @@ class setup_cmd_header extends setup_cmd if (file_exists($this->header_path) && is_writable($this->header_path) || is_writable(dirname($this->header_path)) || function_exists('posix_getuid') && !posix_getuid()) // root has all rights { - if (posix_getuid() && is_writable(dirname($this->header_path)) && file_exists($this->header_path)) + if (file_exists($this->header_path) && !is_writable($this->header_path)) { unlink($this->header_path); }