bug #27904 [Filesystem] fix lock file permissions (fritzmg)
This PR was squashed before being merged into the 2.8 branch (closes #27904).
Discussion
----------
[Filesystem] fix lock file permissions
| Q | A
| ------------- | ---
| Branch? | 2.8
| Bug fix? | yes
| New feature? | no
| BC breaks? | see linked discussion
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
See https://github.com/symfony/symfony/pull/27903
Commits
-------
7a68fea2af
[Filesystem] fix lock file permissions
This commit is contained in:
commit
66b9ebcda5
@ -77,7 +77,7 @@ class LockHandler
|
||||
|
||||
if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
|
||||
if ($this->handle = fopen($this->file, 'x')) {
|
||||
chmod($this->file, 0444);
|
||||
chmod($this->file, 0644);
|
||||
} elseif (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
|
||||
usleep(100); // Give some time for chmod() to complete
|
||||
$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r');
|
||||
|
Reference in New Issue
Block a user