kientzle 2006-11-15 05:14:20 UTC FreeBSD src repository
Modified files: lib/libarchive archive_private.h archive_write.c archive_write_set_format_cpio.c archive_write_set_format_pax.c archive_write_set_format_shar.c archive_write_set_format_ustar.c Log: Change the internal API for writing data to an entry; make the internal format-specific functions return the same as the public function, so that the public API layer doesn't have to guess the correct return value. This addresses an obscure problem that occurs when someone tries to write more data than the size of the entry (as indicated in the entry header). In this case, the return value from archive_write_data() was incorrect, reflecting the requested write rather than the amount actually written. MFC after: 15 days Revision Changes Path 1.24 +1 -1 src/lib/libarchive/archive_private.h 1.21 +1 -3 src/lib/libarchive/archive_write.c 1.8 +6 -3 src/lib/libarchive/archive_write_set_format_cpio.c 1.36 +6 -3 src/lib/libarchive/archive_write_set_format_pax.c 1.13 +9 -6 src/lib/libarchive/archive_write_set_format_shar.c 1.16 +5 -3 src/lib/libarchive/archive_write_set_format_ustar.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"