(tar_seek_archive): improve diagnostic for truncated archive.
commit059cd9569f302347345992dfbbf76db51fc0d4b0
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 10 Mar 2024 07:58:42 +0000 (10 10:58 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 7 Apr 2024 13:38:11 +0000 (7 16:38 +0300)
tree5d8937619fa29594361ec43ace9ac436f3730dad
parent1bae2c678fd86f88d4c210f06b13eea99ced8438
(tar_seek_archive): improve diagnostic for truncated archive.

If EOF has been read, don't attempt to seek past it.

Sync with GNU tar 21318f385627a30da5d92811dd80f70abbe80ee7.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/vfs/tar/tar-internal.c