summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-05-03 05:33:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-05-03 05:33:04 +0000
commit1af34c76bc1167bbfada70004d6cbc41b0098f64 (patch)
tree42cb39da264764002e1343505a4de2678e02fcf6 /pp_sys.c
parent1911be8391700522b225cf514eddd9ebe9eaf644 (diff)
downloadperl-1af34c76bc1167bbfada70004d6cbc41b0098f64.tar.gz
Salvage 'use filetest "access"' from compiletime to runtime.
p4raw-id: //depot/perl@19392
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 11b8edfc41..ae92422452 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2850,7 +2850,7 @@ PP(pp_ftrread)
dSP;
#if defined(HAS_ACCESS) && defined(R_OK)
STRLEN n_a;
- if ((PL_hints & HINT_FILETEST_ACCESS) && SvPOK(TOPs)) {
+ if ((PL_op->op_private & OPpFT_ACCESS) && SvPOK(TOPs)) {
result = access(TOPpx, R_OK);
if (result == 0)
RETPUSHYES;
@@ -2877,7 +2877,7 @@ PP(pp_ftrwrite)
dSP;
#if defined(HAS_ACCESS) && defined(W_OK)
STRLEN n_a;
- if ((PL_hints & HINT_FILETEST_ACCESS) && SvPOK(TOPs)) {
+ if ((PL_op->op_private & OPpFT_ACCESS) && SvPOK(TOPs)) {
result = access(TOPpx, W_OK);
if (result == 0)
RETPUSHYES;
@@ -2904,7 +2904,7 @@ PP(pp_ftrexec)
dSP;
#if defined(HAS_ACCESS) && defined(X_OK)
STRLEN n_a;
- if ((PL_hints & HINT_FILETEST_ACCESS) && SvPOK(TOPs)) {
+ if ((PL_op->op_private & OPpFT_ACCESS) && SvPOK(TOPs)) {
result = access(TOPpx, X_OK);
if (result == 0)
RETPUSHYES;
@@ -2931,7 +2931,7 @@ PP(pp_fteread)
dSP;
#ifdef PERL_EFF_ACCESS_R_OK
STRLEN n_a;
- if ((PL_hints & HINT_FILETEST_ACCESS) && SvPOK(TOPs)) {
+ if ((PL_op->op_private & OPpFT_ACCESS) && SvPOK(TOPs)) {
result = PERL_EFF_ACCESS_R_OK(TOPpx);
if (result == 0)
RETPUSHYES;
@@ -2958,7 +2958,7 @@ PP(pp_ftewrite)
dSP;
#ifdef PERL_EFF_ACCESS_W_OK
STRLEN n_a;
- if ((PL_hints & HINT_FILETEST_ACCESS) && SvPOK(TOPs)) {
+ if ((PL_op->op_private & OPpFT_ACCESS) && SvPOK(TOPs)) {
result = PERL_EFF_ACCESS_W_OK(TOPpx);
if (result == 0)
RETPUSHYES;
@@ -2985,7 +2985,7 @@ PP(pp_fteexec)
dSP;
#ifdef PERL_EFF_ACCESS_X_OK
STRLEN n_a;
- if ((PL_hints & HINT_FILETEST_ACCESS) && SvPOK(TOPs)) {
+ if ((PL_op->op_private & OPpFT_ACCESS) && SvPOK(TOPs)) {
result = PERL_EFF_ACCESS_X_OK(TOPpx);
if (result == 0)
RETPUSHYES;