Date: Wed, 03 Sep 2008 22:07:56 -0700 From: Tim Kientzle <kientzle@freebsd.org> To: Giorgos Keramidas <keramida@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: cpio reporting too many 'blocks' Message-ID: <48BF6D2C.4030001@freebsd.org> In-Reply-To: <87ej41rkpk.fsf@kobe.laptop> References: <87hc8x74nd.fsf@kobe.laptop> <48BEB5E1.8080906@freebsd.org> <87ej41rkpk.fsf@kobe.laptop>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Giorgos Keramidas wrote:
>
> ACK. If you want me to run any tests or test patches, please feel free
> to send them this way :-)
I think I found it. <sigh> Try this and let me know.
Tim
[-- Attachment #2 --]
Index: cpio.c
===================================================================
--- cpio.c (revision 182102)
+++ cpio.c (working copy)
@@ -863,7 +863,6 @@
r = archive_write_close(cpio->archive);
if (r != ARCHIVE_OK)
cpio_errc(1, 0, archive_error_string(cpio->archive));
- archive_write_finish(cpio->archive);
if (!cpio->quiet) {
blocks = (archive_position_uncompressed(cpio->archive) + 511)
@@ -872,6 +871,7 @@
blocks == 1 ? "block" : "blocks");
}
+ archive_write_finish(cpio->archive);
}
/*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48BF6D2C.4030001>
