]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix broken RAR seek support.
authorAndres Mejia <amejia004@gmail.com>
Sat, 26 Jan 2013 01:57:48 +0000 (20:57 -0500)
committerAndres Mejia <amejia004@gmail.com>
Sat, 26 Jan 2013 01:57:48 +0000 (20:57 -0500)
commitc2a8c82a44e2ef60255f5b9d21482c3cc26a60e5
tree2e74c974c8042c5a6b49416fcb8fbb626f1aa361
parent6d032315b1279d83699e7722b92dc97ca9be0e9c
Fix broken RAR seek support.
Using SEEK_CUR or SEEK_END produced the wrong results, SEEK_SET was
fine however. Note that archive_read_data() doesn't function exactly
as POSIX read. Currently, downstreams will have to check the current
file position after after call to archive_read_data() if they are
to use SEEK_CUR afterwards.
libarchive/archive_read_support_format_rar.c
libarchive/test/test_read_format_rar.c