aboutsummaryrefslogtreecommitdiff
path: root/libbb/copy_file.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-09-16 10:23:38 +0000
committerEric Andersen <andersen@codepoet.org>2002-09-16 10:23:38 +0000
commit02b8dfc5249303dd489c479aae1087905427a50e (patch)
tree491be1d4c27aba53d1f7d29990300bc52af7fd59 /libbb/copy_file.c
parent403a73a351d6275b095874cb28c7677d50aa10eb (diff)
downloadbusybox-02b8dfc5249303dd489c479aae1087905427a50e.tar.gz
Let people force overwrite links
-Erik
Diffstat (limited to 'libbb/copy_file.c')
-rw-r--r--libbb/copy_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c
index 1a584017f..d71dbf47d 100644
--- a/libbb/copy_file.c
+++ b/libbb/copy_file.c
@@ -47,7 +47,7 @@ int copy_file(const char *source, const char *dest, int flags)
return -1;
}
- if (stat(dest, &dest_stat) < 0) {
+ if (lstat(dest, &dest_stat) < 0) {
if (errno != ENOENT) {
perror_msg("unable to stat `%s'", dest);
return -1;