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

Michael Varghese mike.varghese@ascellatech.com
Tue, 6 Aug 2002 16:25:16 -0400


Here's a small patch to fix the Owner/Group displays.

Index: horde/lib/VFS/file.php
===================================================================
RCS file: /repository/horde/lib/VFS/file.php,v
retrieving revision 1.16
diff -r1.16 file.php
243c243,245
<                     $file['owner'] = fileowner($entry);
---
>                     $ownerID = fileowner($entry);
>                     $owner = posix_getpwuid($ownerID);
>                     $file['owner'] = $owner['name'];
246c248,250
<                     $file['group'] = filegroup($entry);
---
>                     $groupID = filegroup($entry);
>                     $group = posix_getgrgid($groupID);
>                     $file['group'] = $group['name'];

-mike