bugGNU tar - Bugs: bug #63251, tar --auto-compress doesn't...


bug #63251: tar --auto-compress doesn't recognize suffixes '.z' and '.tzo'

Submitter:  Ilya <cppbest>
Submitted:  Sat 22 Oct 2022 10:46:59 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  gray
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup

Mon 15 Jan 2024 08:54:03 PM UTC, comment #1: 

Fixed in commit 6ba24c31c6874ba59da880c4c858b749c1cc1417.
Thank you.

Sergey Poznyakoff <gray>
Group administrator
Sat 22 Oct 2022 10:46:59 AM UTC, original submission:  

Looks like `tar --auto-compress` doesn't recognize suffixes '.z' and '.tzo', though there are documented in `man gzip` and `man lzop` respectively.

With the following code

for ext in .z .tzo; do
  mkdir -p test && cd test
  mkdir -p files
  touch files/{1,2,3}
  tar --create --file "test$ext" files/{1,2,3} --auto-compress
  mkdir -p extracted_files
  tar --extract --file "test$ext" --directory extracted_files
  file "test$ext"
  cd ..

I expected the following output

test.z: gzip compressed data, from Unix, original size modulo 2^32 10240
test.tzo: lzop compressed data - version 1.040, LZO1X-1, os: Unix

but actually got

test.z: POSIX tar archive (GNU)
test.tzo: POSIX tar archive (GNU)

Ilya <cppbest>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gray (Updated the item)
  • -email is unavailable- added by cppbest (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-15 gray StatusConfirmed Fixed
        Assigned toNone gray
        Open/ClosedOpen Closed
    2023-02-11 gray StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-599c.
    Corresponding source code