Cleaned archives lose compression
When trying to clean a gzipped or bzipped tarball, the compression is lost in the cleaned version but the file name is not updated to reflect that:
$ tar czvf 1.tar.gz test/dirty\ é.p* test/dirty é.pdf test/dirty é.png $ file 1.tar.gz 1.tar.gz: gzip compressed data, last modified: Mon Jan 18 22:12:30 2016, from Unix $ mat 1.tar.gz [*] Cleaning 1.tar.gz [+] 1.tar.gz cleaned! $ file 1.tar.gz 1.tar.gz: POSIX tar archive (GNU) $ tar xzvf 1.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
(from redmine: created on 2016-01-19)