summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ln.c b/src/ln.c
index b7a5208a9..6078f48d0 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -257,7 +257,7 @@ do_link (const char *source, const char *dest)
if (!yesno ())
return 0;
}
- else if (!remove_existing_files)
+ else if (!remove_existing_files && backup_type == none)
{
error (0, 0, _("%s: File exists"), dest);
return 1;