Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 23481a1

Browse filesBrowse files
fritzmgnicolas-grekas
authored andcommitted
[Lock] fix lock file permissions
1 parent 4c7f29f commit 23481a1
Copy full SHA for 23481a1

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Lock/Store/FlockStore.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/FlockStore.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function lock(Key $key, $blocking)
8181
set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; });
8282
if (!$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r')) {
8383
if ($handle = fopen($fileName, 'x')) {
84-
chmod($fileName, 0444);
84+
chmod($fileName, 0644);
8585
} elseif (!$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r')) {
8686
usleep(100); // Give some time for chmod() to complete
8787
$handle = fopen($fileName, 'r+') ?: fopen($fileName, 'r');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.