cvs commit: src/lib/libarchive archive_read_open_fd.c
archive_read_open_file.c archive_read_open_filename.c
Tim Kientzle
kientzle at FreeBSD.org
Tue Jun 26 03:06:49 UTC 2007
kientzle 2007-06-26 03:06:48 UTC
FreeBSD src repository
Modified files:
lib/libarchive archive_read_open_fd.c
archive_read_open_file.c
archive_read_open_filename.c
Log:
Fix 'bsdtar -t' on tape drives. Libarchive uses the
skip() callback to skip over data when reading uncompressed
archives. This gets invoked, for example, during tar -t
or tar -x with a filename argument. The revised code
only calls [lf]seek() on regular files, instead of depending
on the kernel to return an error.
Thanks to: bde for explaining the implementation of lseek()
Thanks to: Daniel O'Connor for testing
Approved by: re (Ken Smith)
MFC after: 5 days
Revision Changes Path
1.13 +13 -2 src/lib/libarchive/archive_read_open_fd.c
1.20 +18 -8 src/lib/libarchive/archive_read_open_file.c
1.20 +14 -2 src/lib/libarchive/archive_read_open_filename.c
More information about the cvs-all
mailing list