mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
get rid of umask
This commit is contained in:
@@ -514,19 +514,15 @@ class Manager
|
||||
return true;
|
||||
}
|
||||
|
||||
$umask = umask(0);
|
||||
|
||||
$result = mkdir($path, $permission);
|
||||
|
||||
if ($umask) {
|
||||
umask($umask);
|
||||
}
|
||||
|
||||
if (!$result && is_dir($path)) {
|
||||
// Dir can be created by a concurrent process.
|
||||
return true;
|
||||
}
|
||||
|
||||
@chmod($path, $permission);
|
||||
|
||||
if (!empty($defaultPermissions['user'])) {
|
||||
$this->getPermissionUtils()->chown($path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user