This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make (l)stat respect get-magic on globs and globrefs
authorFather Chrysostomos <sprout@cpan.org>
Tue, 13 Sep 2011 03:41:07 +0000 (20:41 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 13 Sep 2011 04:25:56 +0000 (21:25 -0700)
commit109c43ede9271ac02d808d98b7ef66bf7e66e033
treeba14cb27b8d576e691667a2859f69064c77cdfbd
parent53b10071adc2e67f88bbc0d32e2dc6f982598c98
Make (l)stat respect get-magic on globs and globrefs

They were ignoring get-magic for those.

A side effect of this fix is that lstat filehandle warnings and errors
are now consistent:

lstat _ used to die if the previous stat was not an lstat, but
lstat *_ and lstat \*_ would happily return what was in the buffer.
Now they die.

lstat FH and \*FH used to warn, but not lstat *FH.  Now it does.

See bug #98864.
pp_sys.c
t/lib/warnings/pp_sys
t/op/stat.t
t/op/tie_fetch_count.t