[BusyBox] cp -df doesn't work as expect for links.

Erik Andersen andersen at codepoet.org
Mon Sep 16 03:25:05 UTC 2002


On Mon Sep 16, 2002 at 04:48:23PM +0800, Joe.C wrote:
> 
> Hi,
> 
>    This bug was found using busybox-0.60.3
> 
>    When copy using 'cp -df'. If the source is a symbolic link
> and destination already exists, the copy will failed.
> 
>    It seems that copy_file.c in libbb didn't unlink the file
> if the source is not a regular file. I think we should always
> unlink the destination file when FILEUTILS_FORCE is on.

I just checked in a fix for this bug.  Can you grab the latest
from CVS and check that the bug is fixed for you?

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list