Skip to content

Commit 35b2345

Browse files
Merge branch '2.8' into 3.4
* 2.8: [Filesystem] fix lock file permissions add @xabbuh as a code owner of the Yaml component
2 parents 8a721a5 + c663efd commit 35b2345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LockHandler.php

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

8484
if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
8585
if ($this->handle = fopen($this->file, 'x')) {
86-
chmod($this->file, 0444);
86+
chmod($this->file, 0644);
8787
} elseif (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
8888
usleep(100); // Give some time for chmod() to complete
8989
$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r');

0 commit comments

Comments
 (0)