Public bug reported:
on noble, "tar --delete" can exit 0 and leave the archive unreadable, or
leave the member in place. seen with archives whose last record is
partial, e.g. ones written with "-b 1" or by "docker export".
tar 1.35 includes upstream commit e89c7a45eb ("Fix savannah bug
#63567"), which changed record counting in src/buffer.c. upstream
reverted it in d437ecf7 with the message "Commit e89c7a45eb broke
deletion from archives". there has been no upstream release since 1.35.
noble (1.35+dfsg-3ubuntu0.4) has the commit and not the revert. jammy
(1.34) does not have the commit. plucky, questing, resolute and the
devel series carry the revert as debian/patches/tar-1.35-revert-fix-
savannah-bug-633567.patch, which came in with debian 1.35+dfsg-3.1.
cd "$(mktemp -d)"
head -c 1 /dev/zero > a
head -c 20000 /dev/zero > b
head -c 1 /dev/zero > c
tar -b 1 -cf t.tar a b c
tar --delete -f t.tar b; echo "exit status: $?"
tar -tf t.tar; echo "exit status: $?"
expected, and what 1.35+dfsg-4ubuntu0.4 (resolute) prints:
exit status: 0
a
c
exit status: 0
what 1.35+dfsg-3ubuntu0.4 (noble) prints:
exit status: 0
a
b
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
exit status: 2
- upstream revert:
https://cgit.git.savannah.gnu.org/cgit/tar.git/commit/?id=d437ecf75de2d6fdeb2aed6f45c4b3b16373389b
- regressing commit:
https://cgit.git.savannah.gnu.org/cgit/tar.git/commit/?id=e89c7a45eb
- upstream report:
https://lists.gnu.org/archive/html/bug-tar/2023-08/msg00018.html
- debian: https://bugs.debian.org/748244
- red hat: https://bugzilla.redhat.com/show_bug.cgi?id=2230127
- podman: https://github.com/containers/podman/issues/19407
** Affects: tar (Ubuntu)
Importance: Undecided
Status: New
** Tags: noble regression-release
** Tags added: noble regression-release
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175741
Title:
tar --delete corrupts archives in noble
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tar/+bug/2175741/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs