projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0037fa
)
(do_link): If ln is invoked with --interactive (-i),
author
Jim Meyering
<jim@meyering.net>
Mon, 22 Aug 2005 10:31:55 +0000
(10:31 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 22 Aug 2005 10:31:55 +0000
(10:31 +0000)
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.
src/ln.c
patch
|
blob
|
history
diff --git
a/src/ln.c
b/src/ln.c
index 9c370e496503c7df4afbc05e4ca3281e84854b74..5efb1d45563bd0b4844206092b3b539d680d222b 100644
(file)
--- a/
src/ln.c
+++ b/
src/ln.c
@@
-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)