[BusyBox] cp says files are the same even though they are not
Rob Landley
rob at landley.net
Mon Apr 11 20:59:53 UTC 2005
On Monday 11 April 2005 07:09 am, Aizer Danny-BDA023 wrote:
> After checking the busy-box-0.60.3 libbb/copy_file.c (called by cp.c), I've
> seen that the following code triggers this message:
>
> if (dest_exists && source_stat.st_rdev == dest_stat.st_rdev &&
> source_stat.st_ino == dest_stat.st_ino) {
> error_msg("`%s' and `%s' are the same file", source, dest);
> return -1;
> }
Sounds like a kernel problem. They should have different st_rdev values if
they're on different block devices.
Rob
More information about the busybox
mailing list