renameatu: Fix test failures on macOS.
commitb4ef486ff5110e4e0714ab77166b5884922be071
authorBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 15:54:21 +0000 (2 16:54 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 15:58:59 +0000 (2 16:58 +0100)
tree0aece53ed8ed11885cac7652eaefb9bb719225c9
parent6999cd135729e0ea18a8ce88471b44170f9d3d75
renameatu: Fix test failures on macOS.

Reported by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.

* lib/renameatu.c (renameatu): Don't call renameatx_np right away.
Instead, treat it as a variant of renameat, with all possible bugs that
renameat might have.
ChangeLog
lib/renameatu.c