Page MenuHomeFreeBSD

D30414.diff
No OneTemporary

D30414.diff

diff --git a/stand/libsa/bzipfs.c b/stand/libsa/bzipfs.c
--- a/stand/libsa/bzipfs.c
+++ b/stand/libsa/bzipfs.c
@@ -340,6 +340,9 @@
target - bzf->bzf_bzstream.total_out_lo32), NULL);
if (errno)
return(-1);
+ /* Break out of loop if end of file has been reached. */
+ if (bzf->bzf_endseen)
+ break;
}
/* This is where we are (be honest if we overshot) */
return(bzf->bzf_bzstream.total_out_lo32);
diff --git a/stand/libsa/gzipfs.c b/stand/libsa/gzipfs.c
--- a/stand/libsa/gzipfs.c
+++ b/stand/libsa/gzipfs.c
@@ -315,6 +315,9 @@
target - zf->zf_zstream.total_out), NULL);
if (errno)
return(-1);
+ /* Break out of loop if end of file has been reached. */
+ if (zf->zf_endseen)
+ break;
}
/* This is where we are (be honest if we overshot) */
return(zf->zf_zstream.total_out);

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 7, 9:54 AM (13 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31024363
Default Alt Text
D30414.diff (839 B)

Event Timeline