Version-Release number of selected component (if applicable): coreutils-5.97-23.el5 How reproducible: 100% Steps to Reproduce: 1. mkdir -p src/dir dst/dir 2. touch src/dir/file dst/dir/file 3. mv -v --backup=numbered src/dir dst Actual results: mv: cannot move `src/dir' to a subdirectory of itself, `dst/dir' Expected results: `src/dir' -> `dst/dir' (backup: `dst/dir.~1~') Additional info: works fine in RHEL-6 and Fedora
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release.
I think fix should consists from combination of http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=fd1628cb1c5496e0dba44daa66ec482da24d3ea0 , http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=156459c2f5e368fdd2c55fc051caeb48fd995b4c and http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=146af5fb139a5c45c12bd40c6114cd842b3ba0c6 ...
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: Previously, the "--backup" option of the mv command did not work with directories and the "cannot move [directory] to a subdirectory of itself" error message was given. This bug has been fixed and the "--backup" option now works with directories as expected.
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-2011-1074.html