1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 10:16:53 +02:00

(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.
This commit is contained in:
Jim Meyering
1997-12-11 08:40:10 +00:00
parent 603137e2ab
commit a320eee158
+1 -1
View File
@@ -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;