summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorDavid Dyck <david.dyck@fluke.com>2000-11-08 02:05:44 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-08 18:35:25 +0000
commit60a4c9abd93d003a9ee694b9990e017ce5b96fb5 (patch)
treef5a1bf40a118032e5a4e9e277a09334577d14861 /pp_sys.c
parentfebabd2afca32f4056ed041373de98438ab121ff (diff)
downloadperl-60a4c9abd93d003a9ee694b9990e017ce5b96fb5.tar.gz
is this the appropriate patch to fix: [ID 20001106.006] find2perl generated scripts issue new lstat() on filehandle _ warning
Message-ID: <Pine.LNX.4.30.0011080957440.2572-100000@dd.tc.fluke.com> p4raw-id: //depot/perl@7612
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 239e3f79bb..7a9dc3987a 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2557,7 +2557,7 @@ PP(pp_stat)
if (PL_op->op_flags & OPf_REF) {
gv = cGVOP_gv;
- if (PL_op->op_type == OP_LSTAT && ckWARN(WARN_IO))
+ if (PL_op->op_type == OP_LSTAT && ckWARN(WARN_IO) && gv != PL_defgv)
Perl_warner(aTHX_ WARN_IO,
"lstat() on filehandle %s", GvENAME(gv));
do_fstat: