ar: handle partial writes from archive_write_data
authoremaste <emaste@FreeBSD.org>
Mon, 24 Jul 2017 21:25:49 +0000 (21:25 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 24 Jul 2017 21:25:49 +0000 (21:25 +0000)
commitdfa3f1552fe0f3dc4775021ffbbb87db2b119745
tree268bac98bf6afa36a67e22d53e85a6c3b157c452
parent9324c28b63971a68e3289c49e7bc29a150b416ad
ar: handle partial writes from archive_write_data

libarchive may limit a single archive_write_data call to handling
0x7fffffff bytes. Add a loop to handle partial writes.

Reviewed by: kib, jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D11715
usr.bin/ar/write.c