Reproducible with busybox 1.22.1

$ cd /tmp
$ touch a
$ mkdir b
$ cp -af a a b
cp: can't create link 'b/a': No such file or directory

This is incorrect behaviour.

It first tries the hardlink the file to itself (it fails due to target
exists and source is itself), then it deletes the existing target file,
and tries again hardlinking to itself (but that fails since source is
deleted). So all fails.

Seems to be bug in libb/copy_file.c; any ideas how to fix?
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to