1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

(do_link): If ln is invoked with --interactive (-i),

encounters an existing destination file, and gets an affirmative
response, then first try to unlink the destination file rather
than simply failing.  Suggestion from Karl Berry.
This commit is contained in:
Jim Meyering
2005-08-22 10:31:55 +00:00
parent a0037fae22
commit b5e741091d

View File

@@ -244,6 +244,7 @@ do_link (const char *source, const char *dest, bool dest_is_dir)
fprintf (stderr, _("%s: replace %s? "), program_name, quote (dest));
if (!yesno ())
return true;
remove_existing_files = true;
}
if (backup_type != no_backups)