8000 [Filesystem] fix lock file permissions · symfony/symfony@7a68fea · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a68fea

Browse files
fritzmgnicolas-grekas
authored andcommitted
[Filesystem] fix lock file permissions
1 parent bacb9ed commit 7a68fea

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