diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-16 10:23:38 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-16 10:23:38 +0000 |
commit | d5eeff301e85a50761013430666cda96a02332b7 (patch) | |
tree | 491be1d4c27aba53d1f7d29990300bc52af7fd59 /libbb | |
parent | 5ef0855a43722ca4554748bd104cbad28d7c69ad (diff) | |
download | busybox-w32-d5eeff301e85a50761013430666cda96a02332b7.tar.gz busybox-w32-d5eeff301e85a50761013430666cda96a02332b7.tar.bz2 busybox-w32-d5eeff301e85a50761013430666cda96a02332b7.zip |
Let people force overwrite links
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@5516 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/copy_file.c | 2 |
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) | |||
47 | return -1; | 47 | return -1; |
48 | } | 48 | } |
49 | 49 | ||
50 | if (stat(dest, &dest_stat) < 0) { | 50 | if (lstat(dest, &dest_stat) < 0) { |
51 | if (errno != ENOENT) { | 51 | if (errno != ENOENT) { |
52 | perror_msg("unable to stat `%s'", dest); | 52 | perror_msg("unable to stat `%s'", dest); |
53 | return -1; | 53 | return -1; |