#1012571 --no-auto-compress does not work when decompressing

Package:
tar
Source:
tar
Description:
GNU version of the tar archiving utility
Submitter:
Marc Haber
Date:
2026-01-10 11:40:10 UTC
Severity:
minor
#1012571#5
Date:
2022-06-09 17:54:20 UTC
From:
To:
Hi,

I have foo.tar.xz which file(1) correctly flags as "XZ compressed data"

tar --extract --file foo.tar.xz happily decompresses this. This is
already a surprise.

I'd have expected to be able to use -no-auto-compress to turn this
automatism off if I want tar to fail on the tar.xz file. This doesnt
work as well, the tar.xz is happily unpacked anyway.

The user story behind this weird issue is that tar --create
--auto-compress --file foo.tar.baz will happily write an uncompressed
tar file to foo.tar.baz if it doesn't recognize the suffix, and I'd like
to be able to diagnose this to fall back to foo.tar.gz to get at least a
bit of compession in that case.

Greetings
Marc

#1012571#10
Date:
2026-01-10 10:08:19 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.