diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2023-04-18 18:18:27 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-04-18 18:18:27 +0200 |
commit | d30a5917a9c40aec18c2243dfc2848c616dca77a (patch) | |
tree | 7c667abc90801cf3cfddfa327b1d5733c8098388 /newlib | |
parent | fa84aa4dd2fb43eaf7fcdfb040aef854f2f19d01 (diff) | |
download | newlib-d30a5917a9c40aec18c2243dfc2848c616dca77a.zip newlib-d30a5917a9c40aec18c2243dfc2848c616dca77a.tar.gz newlib-d30a5917a9c40aec18c2243dfc2848c616dca77a.tar.bz2 |
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>
Diffstat (limited to 'newlib')
0 files changed, 0 insertions, 0 deletions