bug #21930 [Cache] Cached files rely on umask (4rthem)
This PR was merged into the 3.2 branch.
Discussion
----------
[Cache] Cached files rely on umask
| Q | A
| ------------- | ---
| Branch? | 3.2
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #21929
| License | MIT
| Doc PR |
Commits
-------
865a6af153
cached files rely on umask
This commit is contained in:
commit
063c8c347e
@ -150,7 +150,7 @@ EOF;
|
||||
$tmpFile = uniqid($this->file, true);
|
||||
|
||||
file_put_contents($tmpFile, $dump);
|
||||
@chmod($tmpFile, 0666);
|
||||
@chmod($tmpFile, 0666 & ~umask());
|
||||
unset($serialized, $unserialized, $value, $dump);
|
||||
|
||||
@rename($tmpFile, $this->file);
|
||||
|
Reference in New Issue
Block a user