[perl #49003] pp_ftrread appears to use the wrong access mode for -x when using ...
pravus@cpan.org [Fri, 21 Dec 2007 10:05:15 +0000 (02:05 -0800)]
From: pravus@cpan.org (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-22850-1198260315-255.49003-75-0@perl.org>

p4raw-id: //depot/perl@32874

pp_sys.c

index 66ca0fb..da07e46 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2999,10 +2999,9 @@ PP(pp_ftrread)
        effective = TRUE;
        break;
 
-
     case OP_FTEEXEC:
 #ifdef PERL_EFF_ACCESS
-       access_mode = W_OK;
+       access_mode = X_OK;
 #else
        use_access = 0;
 #endif