Skip to content

Commit 6950972

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 608cf7f + 66b9ebc commit 6950972

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@
2525
/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/ValidateWorkflowsPass.php @lyrixx
2626
/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/WorkflowGuardListenerPass.php @lyrixx
2727
/src/Symfony/Component/Workflow/* @lyrixx
28+
# Yaml
29+
/src/Symfony/Component/Yaml/* @xabbuh

src/Symfony/Component/Filesystem/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)