mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:25:22 +01:00
* Filemanager: fix not working changing owner or group of a file/directory (as root!)
This commit is contained in:
parent
d9297ca193
commit
a49627c850
@ -2337,7 +2337,7 @@ class Vfs
|
||||
*/
|
||||
static function chown($path,$owner)
|
||||
{
|
||||
return $path[0] == '/' && chown(self::PREFIX.$path, $owner);
|
||||
return $path[0] == '/' && chown(self::PREFIX.$path, is_numeric($owner) ? abs($owner) : $owner);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2351,7 +2351,7 @@ class Vfs
|
||||
*/
|
||||
static function chgrp($path,$group)
|
||||
{
|
||||
return $path[0] == '/' && chgrp(self::PREFIX.$path, $group);
|
||||
return $path[0] == '/' && chgrp(self::PREFIX.$path, is_numeric($group) ? abs($group) : $group);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user