summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-06-07 10:11:51 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-06-07 10:11:51 +0000
commitba5c3fe9c7fca842d972e373ee61c7a07bd44bb4 (patch)
tree606efaeb5c2be2ec0e0ec3e528da53eac5448fad /perlio.c
parent91c549175fa6d9c1a6279d23a256266b7fbe4be9 (diff)
downloadperl-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 96aa0c9270..e1cbbdc0d1 100644
--- a/perlio.c
+++ b/perlio.c
@@ -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;