When creating a link, ask only if EEXIST
commit5656492d04aa1a82747ff167d8063bbd7950597e
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Aug 2017 08:53:46 +0000 (2 01:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Aug 2017 08:59:32 +0000 (2 01:59 -0700)
treece972532a13d221a53596f71400876465976288f
parentae055834a99b26bf46180b6c78fe7ca24b7c8194
When creating a link, ask only if EEXIST

* src/fileio.c (Fadd_name_to_file, Fmake_symbolic_link):
Ask the user (and unlink and retry) only if link creation fails
with errno == EEXIST.  This avoids the need to ask the user for
permission to do an operation that will fail anyway.
src/fileio.c