summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2007-03-17 14:59:04 +0000
committercperciva <cperciva@FreeBSD.org>2007-03-17 14:59:04 +0000
commit820da8080755db82e36689306abdb1572440348f (patch)
tree9a81d27da028a0f3374dcb6d3e2c43d787893c8a
parenta31ec7e01ca844620709521f532b0581b436c816 (diff)
downloadFreeBSD-src-820da8080755db82e36689306abdb1572440348f.zip
FreeBSD-src-820da8080755db82e36689306abdb1572440348f.tar.gz
Don't forget to increment the raw_position (bytes written) counter, even
when operating in non-buffered mode. Pointy hat to: cperciva MFC after: 3 days
-rw-r--r--lib/libarchive/archive_write_set_compression_none.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive_write_set_compression_none.c b/lib/libarchive/archive_write_set_compression_none.c
index 44ac83e..ffb651d 100644
--- a/lib/libarchive/archive_write_set_compression_none.c
+++ b/lib/libarchive/archive_write_set_compression_none.c
@@ -143,6 +143,7 @@ archive_compressor_none_write(struct archive_write *a, const void *vbuff,
a->client_data, buff, remaining);
if (bytes_written <= 0)
return (ARCHIVE_FATAL);
+ a->archive.raw_position += bytes_written;
remaining -= bytes_written;
buff += bytes_written;
}
OpenPOWER on IntegriCloud