mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 20:51:23 +01:00
do no call posix_* methods (from posix extension), if it is not available
This commit is contained in:
parent
d52b767797
commit
6a9558e2a7
@ -600,7 +600,7 @@ class asyncservice
|
|||||||
{
|
{
|
||||||
echo '<p>'.lang('%1 is not executable by the webserver !!!',$this->$name)."</p>\n";
|
echo '<p>'.lang('%1 is not executable by the webserver !!!',$this->$name)."</p>\n";
|
||||||
$perms = fileperms($this->$name);
|
$perms = fileperms($this->$name);
|
||||||
if (!($perms & 0x0001) && ($perms & 0x0008)) // only executable by group
|
if (!($perms & 0x0001) && ($perms & 0x0008) && function_exists('posix_getuid')) // only executable by group
|
||||||
{
|
{
|
||||||
$group = posix_getgrgid(filegroup($this->$name));
|
$group = posix_getgrgid(filegroup($this->$name));
|
||||||
$webserver = posix_getpwuid(posix_getuid ());
|
$webserver = posix_getpwuid(posix_getuid ());
|
||||||
|
Loading…
Reference in New Issue
Block a user