Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
mat
mat
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 29
    • Issues 29
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • mat
  • matmat
  • Issues
  • #10973

Closed
Open
Opened Jun 10, 2016 by sst@sstReporter

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)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: mat/mat#10973