Improve rename-file behavior on macOS
commit13a846823a92447d5cf0c2ce2bb401c5cdcb9ee4
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Aug 2017 22:25:13 +0000 (14 15:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Aug 2017 22:53:28 +0000 (14 15:53 -0700)
tree5c7f07e83772c76357fc56145ef8cd96ea4eb460
parent4fe9a9efcfdd39c5751d4506e94afaf28fcbcaef
Improve rename-file behavior on macOS

Problem reported by Philipp Stephani (Bug#27986).
* src/fileio.c (Frename_file):
Worry about file name case sensitivity only if CYGWIN or DOS_NT.
* src/sysdep.c (renameat_noreplace): Use renameatx_np on macOS,
since this provides the necessary atomicity guarantees.
src/fileio.c
src/sysdep.c