Don’t emit unopened warning for other stat(HANDLE) error
authorFather Chrysostomos <sprout@cpan.org>
Sat, 14 Jan 2012 08:33:15 +0000 (00:33 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 14 Jan 2012 08:51:58 +0000 (00:51 -0800)
commit8080e3c81732aa2a08a2191391ba00b29588ab46
tree49c79f62c983c3cac41f711c73a536cb21c14681
parent2ad48547234bdf521daff432b65a0b173efd2a19
Don’t emit unopened warning for other stat(HANDLE) error

-r or -T on a GV with no IO or on an IO with no fp (or dirp for -r)
will produce an ‘unopened’ warning.  stat() on a filehandle will warn
about an unopened filehandle not only if there is no fp, but also if
the fstat call fails (with errno containing EBADP, EFAULT or EIO, at
least on Darwin).

I don’t know if there is a way to test this.

(But pp_stat and my_stat_flags are getting closer, so this must be
correct. :-)
pp_sys.c