From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021224 Description of problem: This command: cp --archive --one-file-system --verbose src dst fails if the directory src contains a mount point mounted with 'mount --bind'. Version-Release number of selected component (if applicable): fileutils-4.1.9-11 How reproducible: Always Steps to Reproduce: Run these commands as root: mkdir -p src/{x,y} mount --bind src/x src/y cp --archive --one-file-system src dst Actual Results: The cp command exits with a status of 1 and gives the error message: cp: will not create hard link `dst/y' to directory `dst/x' This directory structure is created: dst/ x/ Note: there is no dst/y. Expected Results: 1. cp should give no error messages. 2. cp should have an exit status of 0. 3. cp should create the directories dst/, dst/x/ and dst/y/.
FWIW, rsync seems to behave correctly in this situation.
Reported to bug-coreutils mailing list.
http://lists.gnu.org/archive/html/bug-coreutils/2003-03/msg00115.html