diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-06-26 03:06:48 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-06-26 03:06:48 +0000 |
commit | 0d5ae862936f390eeabe0d0030d8992f8aef43b0 (patch) | |
tree | a05439b0b80a18ac1fe803e9152fa185536a9373 /sys/security/mac_test/mac_test.c | |
parent | a404044c907d9b5f13dccea6e9e518f93fcfa73f (diff) | |
download | FreeBSD-src-0d5ae862936f390eeabe0d0030d8992f8aef43b0.zip FreeBSD-src-0d5ae862936f390eeabe0d0030d8992f8aef43b0.tar.gz |
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
Diffstat (limited to 'sys/security/mac_test/mac_test.c')
0 files changed, 0 insertions, 0 deletions