]> git.eshelyaron.com Git - emacs.git/commit
When creating a link, ask only if EEXIST
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Aug 2017 08:53:46 +0000 (01:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Aug 2017 08:59:32 +0000 (01:59 -0700)
commit5656492d04aa1a82747ff167d8063bbd7950597e
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