Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Filesystem] fix lock file permissions #27904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Jul 9, 2018

Q A
Branch? 2.8
Bug fix? yes
New feature? no
BC breaks? see linked discussion
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

See #27903

@fritzmg fritzmg changed the title fix lock file permissions [Filesystem] fix lock file permissions Jul 9, 2018
@nicolas-grekas nicolas-grekas added this to the 2.8 milestone Jul 9, 2018
@@ -77,7 +77,7 @@ public function lock($blocking = false)

if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
if ($this->handle = fopen($this->file, 'x')) {
chmod($this->file, 0444);
chmod($this->file, 0666);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, what about 644 here?

@nicolas-grekas nicolas-grekas force-pushed the fix-lock-file-permissions branch from e3f1db7 to 7a68fea Compare July 9, 2018 12:47
@nicolas-grekas
Copy link
Member

Thank you @fritzmg.

@nicolas-grekas nicolas-grekas merged commit 7a68fea into symfony:2.8 Jul 9, 2018
nicolas-grekas added a commit that referenced this pull request Jul 9, 2018
This PR was squashed before being merged into the 2.8 branch (closes #27904).

Discussion
----------

[Filesystem] fix lock file permissions

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | see linked discussion
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

See #27903

Commits
-------

7a68fea [Filesystem] fix lock file permissions
@fritzmg fritzmg deleted the fix-lock-file-permissions branch July 9, 2018 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants