Package: tar
Version: 1.34+dfsg-1
Severity: minor
File: /bin/tar

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

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.2-zgws1 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tar depends on:
ii  libacl1      2.3.1-1
ii  libc6        2.33-7
ii  libselinux1  3.4-1

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip2        1.0.8-5
pn  ncompress    <none>
pn  tar-doc      <none>
pn  tar-scripts  <none>
ii  xz-utils     5.2.5-2.1

-- no debconf information

Reply via email to