cvs commit: src/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
Tim Kientzle
kientzle at FreeBSD.org
Wed Nov 15 05:14:21 UTC 2006
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
More information about the cvs-src
mailing list