| Summary: | Behavior of "cp --backup" changed, not backing up individual files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Tyler Aviss <taviss> | ||||
| Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | qe-baseos-daemons | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 5.7 | CC: | asersen, azelinka, cale, cww, lmiksik, msvoboda, prc, psingare, rbinkhor | ||||
| Target Milestone: | rc | Keywords: | Patch, Regression, ZStream | ||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
An incomplete fix for behavior of the "mv --backup" command, that was released with the RHBA-2011:1074 errata advisory, caused the "cp --backup" command to work incorrectly. When used with a directory as a source argument, the "cp --backup" command did not backup individual files within the directory but whole directory. This update corrects this problem and the "--backup" feature of the "cp" utility now works as intended again.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-09-23 11:09:37 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 803356 | ||||||
| Attachments: |
|
||||||
|
Description
Tyler Aviss
2012-03-09 17:40:21 UTC
Thanks for report, confirmed (of course with -r option added). RHEL-6 cp behaves the expected way, so something probably went wrong in RHEL-5 update. I suspect the fix for #627285 (coreutils-5.97-mv-backupdirs.patch) . Created attachment 569951 [details]
Patch for fixing broken backup for directory argument
Attached patch should fix this issue.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
An incomplete fix for behavior of the "mv --backup" command, that was released with the RHBA-2011:1074 errata advisory, caused the "cp --backup" command to work incorrectly. When used with a directory as a source argument, the "cp --backup" command did not backup individual files within the directory but whole directory. This update corrects this problem and the "--backup" feature of the "cp" utility now works as intended again.
|