Bug 495686
Summary: | tar --keep-newer-files removes the old files | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Olivier Fourdan <ofourdan> | ||||
Component: | tar | Assignee: | Ondrej Vasik <ovasik> | ||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE <qe-baseos-auto> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 5.3 | CC: | cward, dkovalsk, kem, mcermak, tao | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-03-30 08:19:01 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 499522 | ||||||
Attachments: |
|
Description
Olivier Fourdan
2009-04-14 12:24:40 UTC
Thanks for report and patch. I guess as #2 is the behaviour in upstream and fedora rawhide, it would mean small differencing between RHEL-5 and future RHEL-6. Anyway it's just cosmetic difference, so I'll probably use your patch to avoid #1. (In reply to comment #2) > Thanks for report and patch. I guess as #2 is the behaviour in upstream and > fedora rawhide, it would mean small differencing between RHEL-5 and future > RHEL-6. Anyway it's just cosmetic difference, so I'll probably use your patch > to avoid #1. No, #2 (the stat() error message) does not show in recent tar because the extract procedure has been heavily modified between tar 1.15.1 and 1.16 so the unlink() and stat() are not done in the same order apparently (based on traces added in tar 1.16). So the proposed patch actually produces the same output as the tar 1.16 (beside the slight difference in the message): $ ./tar-1.16/src/tar --keep-newer-files -xf test.tar ./tar-1.16/src/tar: Current `test/b' is newer or same age ./tar-1.16/src/tar: Current `test/c' is newer or same age $ ls -l test total 12 -rw-rw-r-- 1 ofourdan ofourdan 29 Apr 14 13:06 a -rw-rw-r-- 1 ofourdan ofourdan 29 Apr 14 13:06 b -rw-rw-r-- 1 ofourdan ofourdan 11 Jan 1 2010 c An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0224.html |