From: pcanterino <> Date: Sat, 23 Jul 2005 11:52:16 +0000 (+0000) Subject: Changing the mode of inaccessible directories works again X-Git-Tag: version_3_0~10 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/ce10babcb8d07587e9bf95496e22e9b4e801f207?hp=9f3101dfe2af7b176b0d191dd75d3d3d14ee2c34 Changing the mode of inaccessible directories works again --- diff --git a/modules/Tool.pm b/modules/Tool.pm index d9a20f7..3ef4a10 100644 --- a/modules/Tool.pm +++ b/modules/Tool.pm @@ -6,7 +6,7 @@ package Tool; # Some shared sub routines # # Author: Patrick Canterino -# Last modified: 2005-06-10 +# Last modified: 2005-07-23 # use strict; @@ -69,7 +69,7 @@ sub check_path($$) my $last = file_name($path); - if(-d $first.'/'.$last && not -l $first.'/'.$last) + if(-d $first.'/'.$last && (not -l $first.'/'.$last) && -r $first.'/'.$last && -x $first.'/'.$last) { $first = abs_path($first.'/'.$last); $last = '';