[vhffs-dev] [1407] come on mamy, let's go mamy

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1407
Author:   gradator
Date:     2009-05-26 12:47:03 +0200 (Tue, 26 May 2009)

Log Message:
-----------
come on mamy, let's go mamy

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Functions.pm


Modified: trunk/vhffs-api/src/Vhffs/Functions.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Functions.pm	2009-05-26 07:44:35 UTC (rev 1406)
+++ trunk/vhffs-api/src/Vhffs/Functions.pm	2009-05-26 10:47:03 UTC (rev 1407)
@@ -234,10 +234,8 @@
     my $f;
     
     while( defined($f = shift @files) ) {
-        if( -f $f ) {
-            chown( $uid, $gid, $f );
-        } elsif( -d $f ) {
-            chown( $uid, $gid, $f );
+        chown( $uid, $gid, $f );
+        if( -d $f ) {
             opendir( DIRECTORY, $f );
             my @content = readdir( DIRECTORY );
             closedir( DIRECTORY );


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/