[BusyBox] cp -df doesn't work as expect for links.
Erik Andersen
andersen at codepoet.org
Mon Sep 16 04:22:04 UTC 2002
On Mon Sep 16, 2002 at 06:02:51PM +0800, Joe.C wrote:
>
>
> Erik Andersen wrote:
> >I just checked in a fix for this bug. Can you grab the lates
> >from CVS and check that the bug is fixed for you?
>
> It didn't work if destination is a link. It works fine if
> the destination is a regular file.
> Please try the following procedure.
>
> ln -s aa xx
> ln -s bb yy
> cp -df xx yy
Ahh. Looks like one more patch is needed. Can you try
this additional change to libbb/copy_file.c:51
- if (stat(dest, &dest_stat) < 0) {
+ if (lstat(dest, &dest_stat) < 0) {
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list