8000 bug #27904 [Filesystem] fix lock file permissions (fritzmg) · symfony/symfony@66b9ebc · GitHub
[go: up one dir, main page]

Skip to content

Commit 66b9ebc

Browse files
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 #27903 Commits ------- 7a68fea [Filesystem] fix lock file permissions
2 parents ca70000 + 7a68fea commit 66b9ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Filesystem/LockHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function lock($blocking = false)
7777

7878
if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
7979
if ($this->handle = fopen($this->file, 'x')) {
80-
chmod($this->file, 0444);
80+
chmod($this->file, 0644);
8181
} elseif (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
8282
usleep(100); // Give some time for chmod() to complete
8383
$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r');

0 commit comments

Comments
 (0)
0