From: David Dyck Date: Wed, 8 Nov 2000 10:05:44 +0000 (-0800) Subject: is this the appropriate patch to fix: [ID 20001106.006] find2perl generated scripts... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=60a4c9abd93d003a9ee694b9990e017ce5b96fb5;p=p5sagit%2Fp5-mst-13.2.git is this the appropriate patch to fix: [ID 20001106.006] find2perl generated scripts issue new lstat() on filehandle _ warning Message-ID: p4raw-id: //depot/perl@7612 --- diff --git a/pp_sys.c b/pp_sys.c index 239e3f7..7a9dc39 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: