]> Savannah Git Hosting - gnulib.git/commit
renameatu: port to macOS tmpfs
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Dec 2021 20:32:30 +0000 (12:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Dec 2021 20:33:01 +0000 (12:33 -0800)
commitdd474e50930ea00910631eb1b77ff4270d7b02c0
tree121440d263ed04933922a3f760885d7711bfaf04
parent26981accf3a9688c1f3b63b834767030d10559f4
renameatu: port to macOS tmpfs

Problem reported by Sudhip Nashi (Bug#52193).
* lib/renameatu.c (renameat2ish) [HAVE_RENAMEAT]: New function.
(renameatu): Use the new function, to avoid a bug when
renameatx_np fails with errno == ENOTSUP.  Don’t try to support
RENAME_EXCHANGE; the old code didn’t work and nobody using using
RENAME_EXCHANGE anyway.
ChangeLog
lib/renameatu.c