mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
only delete header, if it does exist and is NOT writable (otherwise the header is owned by the user running the script)
This commit is contained in:
parent
a5a5c6c065
commit
606fef6856
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user