summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-12 14:32:30 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-12 14:32:30 -0800
commit5731662b7617da2ff1626044f081de38b50a0ddc (patch)
treedd7711f6bffe713e26338591b0e53ebb6a242d3e /pp_sys.c
parentb6cb94c5b90e1d814bbb4b070425ee261df0ce7e (diff)
downloadperl-5731662b7617da2ff1626044f081de38b50a0ddc.tar.gz
Make -T HANDLE set the last stat type
This was brought up in bug #77388.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index b8c212c6ab..bd552a17aa 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3328,6 +3328,7 @@ PP(pp_fttext)
if (! PerlIO_has_base(IoIFP(io)))
DIE(aTHX_ "-T and -B not implemented on filehandles");
PL_laststatval = PerlLIO_fstat(PerlIO_fileno(IoIFP(io)), &PL_statcache);
+ PL_laststype = OP_STAT;
if (PL_laststatval < 0)
RETPUSHUNDEF;
if (S_ISDIR(PL_statcache.st_mode)) { /* handle NFS glitch */