From: Jim Meyering Date: Thu, 11 Dec 1997 08:40:10 +0000 (+0000) Subject: (do_link): Don't require --force when target exists and X-Git-Tag: FILEUTILS-3_16g~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a320eee15855e557ce07c3d47cb262484b139846;p=thirdparty%2Fcoreutils.git (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. --- diff --git a/src/ln.c b/src/ln.c index b7a5208a9d..6078f48d0e 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;