[BUG] 'cp -a' fails on duplicate source file

Martijn Dekker martijn at inlv.org
Fri Dec 21 10:05:19 UTC 2018


$ touch foo
$ cp -a foo foo /tmp/
cp: can't create link '/tmp/foo': No such file or directory

GNU 'cp' just produces a warning and successfully copies the file, but 
Busybox 'cp' fails with an error as above and doesn't copy anything.

- m.


More information about the busybox mailing list