diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-06-07 10:11:51 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-06-07 10:11:51 +0000 |
commit | ba5c3fe9c7fca842d972e373ee61c7a07bd44bb4 (patch) | |
tree | 606efaeb5c2be2ec0e0ec3e528da53eac5448fad /perlio.c | |
parent | 91c549175fa6d9c1a6279d23a256266b7fbe4be9 (diff) | |
download | perl-ba5c3fe9c7fca842d972e373ee61c7a07bd44bb4.tar.gz |
Don't discard read data on flush if seek fails.
p4raw-id: //depot/perlio@17053
Diffstat (limited to 'perlio.c')
-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; |