Index: solenv/bin/modules/installer/download.pm =================================================================== RCS file: /cvs/tools/solenv/bin/modules/installer/download.pm,v retrieving revision 1.16.10.1 diff -u -r1.16.10.1 download.pm --- solenv/bin/modules/installer/download.pm 7 Jun 2005 00:11:07 -0000 1.16.10.1 +++ solenv/bin/modules/installer/download.pm 7 Jun 2005 01:33:51 -0000 @@ -70,6 +70,13 @@ use installer::systemactions; use installer::logger; +BEGIN { # This is needed so that cygwin's perl evaluates ACLs + # (needed for correctly evaluating the -x test.) + if( $^O =~ /cygwin/i ) { + require filetest; import filetest "access"; + } +} + ################################################################## # Including the lowercase product name into the script template ################################################################## @@ -919,9 +926,7 @@ $path =~ s/[\/\\]+$//; # remove trailing slashes; $nsispath = $paths . "/nsis"; - # Cygwin's perl doesn't correctly evaluate windows ACLs, so - # use -e instead of -x here. - if ( -e $nsispath ) { + if ( -x $nsispath ) { $nsispath = $paths; last; }