summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-20 12:55:17 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-20 14:49:08 -0800
commitdaa30a688f5d99ab2f3405562a4325687c307066 (patch)
tree9fed26668a2ef628a20da8e5bddbe49be69a9dc6 /pp_sys.c
parent0540b90bcca7b8f2c1eb9ab87c5fea1b461df4cf (diff)
downloadperl-daa30a688f5d99ab2f3405562a4325687c307066.tar.gz
[perl #71002] stat() on unopened fh _
stat _ was producing an erroneous warning about an unopened filehandle with _. But _ isn’t a real filehandle and is special-cased, so it shouldn’t warn. See also commit 8080e3c8.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 0a1b1dc864..246c9ad4c0 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2796,10 +2796,10 @@ PP(pp_stat)
PL_laststatval = -1;
}
}
+ if (PL_laststatval < 0 && !havefp) report_evil_fh(gv);
}
if (PL_laststatval < 0) {
- if (!havefp) report_evil_fh(gv);
max = 0;
}
}