summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-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 1a58401..d71dbf4 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;