loosen perms for fpm
This commit is contained in:
parent
f590f72b0d
commit
a5288f96b8
@ -120,6 +120,9 @@ function get_hashed_password($password) {
|
|||||||
|
|
||||||
function hasPermissions($path, $permissions = '0777') {
|
function hasPermissions($path, $permissions = '0777') {
|
||||||
|
|
||||||
|
/* assume that if running with the same uid as the owner of the directory it's ok */
|
||||||
|
$stat = @stat($path);
|
||||||
|
if ($stat && ($stat['uid'] == getmyuid())) return true;
|
||||||
if (substr(sprintf('%o', @fileperms($path)), -4)!=$permissions) return false;
|
if (substr(sprintf('%o', @fileperms($path)), -4)!=$permissions) return false;
|
||||||
else return true;
|
else return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user