bug#20775: cp -a -u destroys files after they are copied

2015-06-09 Thread Steffen Zahn
Hello, I found that the cp command acts "sub-optimal" when copying hard-linked files of the same name from several directories to one target directory, it first copies the files then removes them. I cannot see how that can be the intended behaviour. Please fix this. best regards Steffen Zahn

bug#20775: cp -a -u destroys files after they are copied

2015-06-30 Thread L. A. Walsh
I think you'll find this was reported 3 years ago.. "bug#10471: Severe or critical - deletes existing files and leaves nothing. (cp)" https://lists.gnu.org/archive/html/bug-coreutils/2015-04/msg1.html Unfortunately it was closed it out w/the reason that it was a "cygwin/windows-only"

bug#20775: cp -a -u destroys files after they are copied

2015-06-30 Thread Steffen Zahn
Hello, the bug was observed on Linux this time. Unfortunately I was hit with the bug when backing up several large photo directories with hard-links to one target directory on an external drive. So it was not obvious for me at first, that something was going wrong. >From my point of view (without

bug#20775: cp -a -u destroys files after they are copied

2015-06-30 Thread Paul Eggert
Steffen Zahn wrote: it should be easy to repair Really? Without significantly affecting performance in the usual case? Let's see a patch.

bug#20775: cp -a -u destroys files after they are copied

2019-01-11 Thread Assaf Gordon
severity 20775 wishlist retitle 20775 cp: improve hardlink dups handling with "cp -a -u" stop With no further comments in more than 3 years, I'm marking this as a "wish list" item. -assaf