[Filesystem] fix lock file permissions
This commit is contained in:
parent
bacb9ed333
commit
7a68fea2af
@ -77,7 +77,7 @@ class LockHandler
|
|||||||
|
|
||||||
if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
|
if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
|
||||||
if ($this->handle = fopen($this->file, 'x')) {
|
if ($this->handle = fopen($this->file, 'x')) {
|
||||||
chmod($this->file, 0444);
|
chmod($this->file, 0644);
|
||||||
} elseif (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
|
} elseif (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
|
||||||
usleep(100); // Give some time for chmod() to complete
|
usleep(100); // Give some time for chmod() to complete
|
||||||
$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r');
|
$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r');
|
||||||
|
Reference in New Issue
Block a user