[Jifty-commit] r1997 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 1 12:07:27 EDT 2006


Author: audreyt
Date: Sun Oct  1 12:07:26 2006
New Revision: 1997

Modified:
   jifty/trunk/lib/Jifty/Util.pm

Log:
* Change Jifty::Util's probe of bin/jifty from -x to -r for poor
  people on filesystems that does not have a executable bit.
  (The maybe_command is still needed for the .bat case.)

Modified: jifty/trunk/lib/Jifty/Util.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Util.pm	(original)
+++ jifty/trunk/lib/Jifty/Util.pm	Sun Oct  1 12:07:26 2006
@@ -160,7 +160,7 @@
                 # Also, /usr/bin or /usr/local/bin should be taken from
                 # %Config{bin} or %Config{scriptdir} or something like that
                 # for portablility.
-                (-x $try or (($^O =~ /(?:MSWin32|cygwin|os2)/) and MM->maybe_command($try)))
+                (-e $try or (($^O =~ /(?:MSWin32|cygwin|os2)/) and MM->maybe_command($try)))
                 and $try ne File::Spec->catdir($Config{bin}, "jifty")
                 and $try ne File::Spec->catdir($Config{scriptdir}, "jifty") )
             {


More information about the Jifty-commit mailing list