Commit cbddb793 authored by Tobias Reich's avatar Tobias Reich
Browse files

Merge pull request #174 from reneluria/master

loosen perms for fpm
parents f590f72b a5288f96
......@@ -120,6 +120,9 @@ function get_hashed_password($password) {
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;
else return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment