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

Joe.C joe at numa.com.tw
Tue Sep 24 20:35:03 UTC 2002


    It didn't work in 0.60.4. Try this

===========
touch aa
ln -s aa bb
cp -df bb cc
===========

    The file 'cc' should be a symbolic link to aa.
    I've attached my patch to fix this problem.

    Maybe we should create some testcase and test every time after
copy_file.c is changed to make sure all condition is correct?

Joe.C
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: copy_file.patch
Url: http://lists.busybox.net/pipermail/busybox/attachments/20020924/96b020ea/attachment.diff 


More information about the busybox mailing list