From 3edf63036a9bcd25a4027ddf3d159f04fb42f575 Mon Sep 17 00:00:00 2001 From: vapier Date: Thu, 14 Apr 2005 02:52:50 +0000 Subject: fake out support for POSIX -H and -L options since busybox cp dereferences everything by default git-svn-id: svn://busybox.net/trunk/busybox@10097 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/copy_file.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libbb') diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 68a1ded04..0120d0b16 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c @@ -54,10 +54,11 @@ int copy_file(const char *source, const char *dest, int flags) } } else { if (source_stat.st_dev == dest_stat.st_dev && - source_stat.st_ino == dest_stat.st_ino) { - bb_error_msg("`%s' and `%s' are the same file", source, dest); - return -1; - } + source_stat.st_ino == dest_stat.st_ino) + { + bb_error_msg("`%s' and `%s' are the same file", source, dest); + return -1; + } dest_exists = 1; } -- cgit v1.2.3-55-g6feb