diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-07 13:14:44 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-07 13:14:44 +0000 |
commit | 93277c0ce83edfc9e5c7c1b4c9c0747bd6ad2cac (patch) | |
tree | 678169843106a79cfba433867a28bee92bf379b1 | |
parent | 8939ba947b65b018b80ecab3fe1366287d07d1d7 (diff) | |
parent | ba5c3fe9c7fca842d972e373ee61c7a07bd44bb4 (diff) | |
download | perl-93277c0ce83edfc9e5c7c1b4c9c0747bd6ad2cac.tar.gz |
Integrate perlio:
[ 17053]
Don't discard read data on flush if seek fails.
p4raw-link: @17053 on //depot/perlio: ba5c3fe9c7fca842d972e373ee61c7a07bd44bb4
p4raw-id: //depot/perl@17056
-rw-r--r-- | perlio.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3123,6 +3123,9 @@ PerlIOBuf_flush(pTHX_ PerlIO *f) /* Reload n as some layers may pop themselves on seek */ b->posn = PerlIO_tell(n = PerlIONext(f)); } + else { + return code; + } } } b->ptr = b->end = b->buf; |