8000 [Filesystem] fix lock file mode · symfony/symfony@881c46a · GitHub
[go: up one dir, main page]

Skip to content

Commit 881c46a

Browse files
[Filesystem] fix lock file mode
1 parent e3bdbed commit 881c46a

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, 0644);
80+
chmod($this->file, 0666);
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