Fix the wrong mask for temp. directory in FileCache.php
Detail see https://dev.icinga.org/issues/10892. ref #10892 Signed-off-by: Thomas Gelf <thomas@gelf.net>
This commit is contained in:
parent
7bafab2c68
commit
3c47436c1b
|
@ -50,7 +50,7 @@ class FileCache
|
|||
$this->basedir = $runtimePath;
|
||||
$this->enabled = true;
|
||||
}
|
||||
} elseif (is_dir($tmpDir) && is_writeable($tmpDir) && @mkdir($runtimePath, '0750', true)) {
|
||||
} elseif (is_dir($tmpDir) && is_writeable($tmpDir) && @mkdir($runtimePath, octdec('1750'), true)) {
|
||||
// Suppress mkdir errors because it may error w/ no such file directory if the systemd private tmp directory
|
||||
// for the web server has been removed
|
||||
$this->basedir = $runtimePath;
|
||||
|
|
Loading…
Reference in New Issue