aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-14 02:52:50 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-14 02:52:50 +0000
commit2ed05ab1464a442e8fd13815abf43575c7910aad (patch)
tree44fae62c20b02fe54fb141c3312958842893873e /libbb
parent75ac42b1aea14abbd8633003a6c56fa28c27a6c9 (diff)
downloadbusybox-2ed05ab1464a442e8fd13815abf43575c7910aad.tar.gz
fake out support for POSIX -H and -L options since busybox cp dereferences everything by default
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)
}
} 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;
}