From a320eee15855e557ce07c3d47cb262484b139846 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 11 Dec 1997 08:40:10 +0000 Subject: (do_link): Don't require --force when target exists and using --backup. This changes makes ln consistent with cp and mv in this respect. Suggestion from Eli Zaretskii. --- src/ln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ln.c') 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; -- cgit v1.2.3-54-g00ecf