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:
Uwe Ebel 2015-12-18 21:28:48 +01:00 committed by Thomas Gelf
parent 7bafab2c68
commit 3c47436c1b
1 changed files with 1 additions and 1 deletions

View File

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