summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorpravus@cpan.org <pravus@cpan.org>2007-12-21 02:05:15 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-01-06 16:19:22 +0000
commitb376053de54af4268a31e5a60d1f9e57db30af11 (patch)
tree0d48529b46f380bf24df213ff31fd89289b157d9 /pp_sys.c
parent3a28f3fb1bfd44e4e3dfe6842af867c8c1c9de28 (diff)
downloadperl-b376053de54af4268a31e5a60d1f9e57db30af11.tar.gz
[perl #49003] pp_ftrread appears to use the wrong access mode for -x when using "use filetest 'access';"
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
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 66ca0fb50d..da07e46e1f 100644
--- 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