aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-14 02:52:50 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-14 02:52:50 +0000
commit3edf63036a9bcd25a4027ddf3d159f04fb42f575 (patch)
tree44fae62c20b02fe54fb141c3312958842893873e /libbb
parentc524ced560ab34a8421306506e7c6ff585db6bb6 (diff)
downloadbusybox-w32-3edf63036a9bcd25a4027ddf3d159f04fb42f575.tar.gz
busybox-w32-3edf63036a9bcd25a4027ddf3d159f04fb42f575.tar.bz2
busybox-w32-3edf63036a9bcd25a4027ddf3d159f04fb42f575.zip
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
Diffstat (limited to 'libbb')
-rw-r--r--libbb/copy_file.c9
1 files changed, 5 insertions, 4 deletions
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)
54 } 54 }
55 } else { 55 } else {
56 if (source_stat.st_dev == dest_stat.st_dev && 56 if (source_stat.st_dev == dest_stat.st_dev &&
57 source_stat.st_ino == dest_stat.st_ino) { 57 source_stat.st_ino == dest_stat.st_ino)
58 bb_error_msg("`%s' and `%s' are the same file", source, dest); 58 {
59 return -1; 59 bb_error_msg("`%s' and `%s' are the same file", source, dest);
60 } 60 return -1;
61 }
61 dest_exists = 1; 62 dest_exists = 1;
62 } 63 }
63 64