mainGNU tar - Support: sr #110314, tar --compare doesn't reliably...


sr #110314: tar --compare doesn't reliably catch file contents differences.

Submitter:  Ben Manifold <benmanifold>
Submitted:  Fri 18 Sep 2020 07:23:49 PM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup

Fri 18 Sep 2020 07:23:49 PM UTC, original submission:  

When I archive a folder containing a helm chart, and then extract the archive, and modify a line of the file's contents, tar --compare fails to return the expected "Contents differ". It only shows the mod time changed, and sometimes it reports differences in file size.

This leaves me with no way to check that the contents of files in an archive match the contents of files in a folder. What am I doing wrong?

Ben Manifold <benmanifold>


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

Attach Files:

Attached Files
file #49812: added by benmanifold (14KiB - application/zip - gtar --diff --verbose --file=testChart.tar testChart)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by benmanifold (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.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-18 benmanifold Attached File- Added, #49812

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code