added sqlfs and support for whatever sign the gid has

This commit is contained in:
Ralf Becker 2008-02-18 06:51:35 +00:00
parent 9c649da978
commit 2f1eb2d272

View File

@ -215,6 +215,7 @@ function load_wrapper($url)
break; break;
case 'oldvfs': case 'oldvfs':
case 'vfs': case 'vfs':
case 'sqlfs':
if (!isset($GLOBALS['egw_info'])) if (!isset($GLOBALS['egw_info']))
{ {
$_GET['domain'] = parse_url($url,PHP_URL_HOST); $_GET['domain'] = parse_url($url,PHP_URL_HOST);
@ -281,7 +282,7 @@ function do_stat($url,$long=false,$numeric=false)
if (!isset($uid)) $uid = 'root'; if (!isset($uid)) $uid = 'root';
if ($stat['gid']) if ($stat['gid'])
{ {
$gid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name($stat['gid']) : posix_getgrgid($stat['gid']); $gid = isset($GLOBALS['egw']) ? $GLOBALS['egw']->accounts->id2name(-abs($stat['gid'])) : posix_getgrgid($stat['gid']);
if (is_array($gid)) $gid = $gid['name']; if (is_array($gid)) $gid = $gid['name'];
} }
if (!isset($gid)) $gid = 'root'; if (!isset($gid)) $gid = 'root';