]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: align renameat2 to Linux behaviour
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 18 Apr 2023 16:18:27 +0000 (18:18 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 18 Apr 2023 16:18:27 +0000 (18:18 +0200)
commitd30a5917a9c40aec18c2243dfc2848c616dca77a
tree7c667abc90801cf3cfddfa327b1d5733c8098388
parentfa84aa4dd2fb43eaf7fcdfb040aef854f2f19d01
Cygwin: align renameat2 to Linux behaviour

In contrast to rename default behaviour, Linux' renameat2 returns -1
with errno set to EEXIST, if oldfile and newfile refer to the same
file, and the RENAME_NOREPLACE flag is set.

Follow suit, given this is a Linux-only function anyway.

Fixes: f665b1cef30f ("cygwin: Implement renameat2")
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/release/3.4.7
winsup/cygwin/syscalls.cc
This page took 0.028489 seconds and 5 git commands to generate.