From 2f1eb2d2727298c264288c59692b5426ca0c7048 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 18 Feb 2008 06:51:35 +0000 Subject: [PATCH] added sqlfs and support for whatever sign the gid has --- filemanager/ls.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filemanager/ls.php b/filemanager/ls.php index fb7ab4eea9..8373e708c9 100755 --- a/filemanager/ls.php +++ b/filemanager/ls.php @@ -215,6 +215,7 @@ function load_wrapper($url) break; case 'oldvfs': case 'vfs': + case 'sqlfs': if (!isset($GLOBALS['egw_info'])) { $_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 ($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 (!isset($gid)) $gid = 'root';