Merge pull request #25236 from nextcloud/mkdir-explicit-chmod
explicitly set permissions on newly created folders
This commit is contained in:
commit
349b65eff3
|
@ -86,7 +86,10 @@ class Local extends \OC\Files\Storage\Common {
|
|||
}
|
||||
|
||||
public function mkdir($path) {
|
||||
return @mkdir($this->getSourcePath($path), 0777, true);
|
||||
$sourcePath = $this->getSourcePath($path);
|
||||
$result = @mkdir($sourcePath, 0777, true);
|
||||
chmod($sourcePath, 0755);
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function rmdir($path) {
|
||||
|
|
Loading…
Reference in New Issue