Warn for stat(*unopened) after statting file
authorFather Chrysostomos <sprout@cpan.org>
Fri, 20 Jan 2012 21:12:14 +0000 (13:12 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 20 Jan 2012 22:49:08 +0000 (14:49 -0800)
commit05bb32d213ce171a55a6a7226fba6f1f1fea3fd6
treefbb613d8bfaa05bb03479116e0a9da8783f542a1
parentb8413ac3c2aeba8d9cbe9ce77d7eafc3f5ae0fef
Warn for stat(*unopened) after statting file

Statting an existing file used to prevent a subsequent stat(*unopened)
from warning if the GV happened to have no IO.  If the GV *did* have
an IO, but an unopened one, it *would* warn.

This inconsistency was introduced in 5.10.0 with commit 5228a96c60
(which was also backported to 5.8.9).
pp_sys.c
t/lib/warnings/pp_sys