diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-08 19:34:28 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-08 19:34:28 +0000 |
commit | 3e11456d40b4ad69655e467967b6b2a956c124ab (patch) | |
tree | c551759db47dfeafac92668ac186efd30a4e7ca2 /util.c | |
parent | 86b00b91adbc06e25e98c02d22e725e1888cb041 (diff) | |
download | perl-3e11456d40b4ad69655e467967b6b2a956c124ab.tar.gz |
Double check that we have a dirhandle.
p4raw-id: //depot/perl@6557
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3919,7 +3919,7 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op) if (name && *name) { Perl_warner(aTHX_ warn, "%s%s on %s %s %s", func, pars, vile, type, name); - if (io && IoDIRP(io)) + if (io && IoDIRP(io) && !(IoFLAGS(io) & IOf_FAKE_DIRP)) Perl_warner(aTHX_ warn, "\t(Are you trying to call %s%s on dirhandle %s?)\n", func, pars, name); @@ -3927,7 +3927,7 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op) else { Perl_warner(aTHX_ warn, "%s%s on %s %s", func, pars, vile, type); - if (io && IoDIRP(io)) + if (io && IoDIRP(io) && !(IoFLAGS(io) & IOf_FAKE_DIRP)) Perl_warner(aTHX_ warn, "\t(Are you trying to call %s%s on dirhandle?)\n", func, pars); |