summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-09-25 23:58:12 +0200
committerhv <hv@crypt.org>2002-10-02 13:18:01 +0000
commit97828cef4d4cd22b548b8ec430d2e0e28ea8ae8c (patch)
tree2817e7bfaa6276aeb08a1f299c768a305f24d9fd /doio.c
parentdd2155a49b710f23bc6d72169e5b1d71d8b3aa03 (diff)
downloadperl-97828cef4d4cd22b548b8ec430d2e0e28ea8ae8c.tar.gz
Re: perlio bug?
Message-Id: <20020925215812.3b7adb0d.rgarciasuarez@free.fr> p4raw-id: //depot/perl@17954
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/doio.c b/doio.c
index a706fbfe14..fdd83f6ee5 100644
--- a/doio.c
+++ b/doio.c
@@ -536,12 +536,14 @@ Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw,
if ((IoTYPE(io) == IoTYPE_RDONLY) &&
(fp == PerlIO_stdout() || fp == PerlIO_stderr())) {
Perl_warner(aTHX_ packWARN(WARN_IO),
- "Filehandle STD%s opened only for input",
- (fp == PerlIO_stdout()) ? "OUT" : "ERR");
+ "Filehandle STD%s reopened as %s only for input",
+ ((fp == PerlIO_stdout()) ? "OUT" : "ERR"),
+ GvENAME(gv));
}
else if ((IoTYPE(io) == IoTYPE_WRONLY) && fp == PerlIO_stdin()) {
Perl_warner(aTHX_ packWARN(WARN_IO),
- "Filehandle STDIN opened only for output");
+ "Filehandle STDIN reopened as %s only for output",
+ GvENAME(gv));
}
}