From d5eeff301e85a50761013430666cda96a02332b7 Mon Sep 17 00:00:00 2001 From: andersen Date: Mon, 16 Sep 2002 10:23:38 +0000 Subject: Let people force overwrite links -Erik git-svn-id: svn://busybox.net/trunk/busybox@5516 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/copy_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') 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; -- cgit v1.2.3-55-g6feb