[vhffs-dev] [1410] oops!

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


Revision: 1410
Author:   gradator
Date:     2009-05-26 14:08:47 +0200 (Tue, 26 May 2009)

Log Message:
-----------
oops!

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 11:30:27 UTC (rev 1409)
+++ trunk/vhffs-api/src/Vhffs/Functions.pm	2009-05-26 12:08:47 UTC (rev 1410)
@@ -206,8 +206,8 @@
     my $file;
 
     while( $file = shift @files ) {
-        chmod( $fmod, $file );
         if( -d $file ) {
+            chmod( $dmod, $file );
             opendir DIRECTORY, $file;
             my @content = readdir( DIRECTORY );
             closedir( DIRECTORY );
@@ -216,6 +216,9 @@
                 push @files, $file.'/'.$item;
             }
         }
+        else {
+            chmod( $fmod, $file );
+        }
     }
 }
 


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