]> git.ipfire.org Git - thirdparty/tar.git/commit
Don't assume archive read from stdin starts at offset 0
authorSergey Poznyakoff <gray@gnu.org>
Thu, 31 Oct 2024 17:09:28 +0000 (19:09 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 31 Oct 2024 17:17:05 +0000 (19:17 +0200)
commit647cafff9657be46d76026d0ddd977abbad6711f
tree41627c2560fe0564f9b564e5594f0f0d7ee36bec
parentbd06b114d973115bb3462707ab078d93bcb8047b
Don't assume archive read from stdin starts at offset 0

* src/buffer.c (start_offset): New variable.
(get_archive_status): If reading from seekable stdin, store the
position in the stream corresponding to record_start in start_offset.
(seek_archive): Compute current offset relative to start_offset.
src/buffer.c