[dev] PATCH horde/lib/VFS/file.php

Mike Cochrane mike@graftonhall.co.nz
Tue, 6 Aug 2002 21:47:48 +0100


Okay.. here's the win32 friendly version...

- Mike :-)

Index: lib/VFS/file.php
===================================================================
RCS file: /httpd/horde/horde/lib/VFS/file.php,v
retrieving revision 1.16
diff -I$Horde -I$Revision -I$Date -u -r1.16 file.php
--- lib/VFS/file.php	2002/08/06 17:30:38	1.16
+++ lib/VFS/file.php	2002/08/06 20:44:47
@@ -241,9 +241,17 @@
 
                     // Owner
                     $file['owner'] = fileowner($entry);
-
+                    if (function_exists('posix_getpwuid')) {
+                        $owner = posix_getpwuid($file['owner']);
+                        $file['owner'] = $owner['name'];
+                    }
+                    
                     // Group
                     $file['group'] = filegroup($entry);
+                    if (function_exists('posix_getgrgid')) {
+                        $group = posix_getgrgid($file['group']);
+                        $file['group'] = $group['name'];
+                    }
 
                     // Size
                     $file['size'] = filesize($entry);

-------------------------------------------------------------------------
This mail sent from Mike's CVS HEAD install of IMP: http://horde.org/imp/