* lib/renameatu.c(): Fall back to renameat() when
renameatx_np(RENAME_EXCL) returns "Function not implemented".
This issue was seen with macFUSE.
Reported at https://github.com/coreutils/coreutils/issues/79
+2024-04-02 Pádraig Brady <P@draigBrady.com>
+
+ renameatu: handle ENOSYS from renameatx_np
+ * lib/renameatu.c(): Fall back to renameat() without RENAME_EXCL
+ if "Function not implemented" is returned. This was seen with macFUSE.
+ Reported at https://github.com/coreutils/coreutils/issues/79
+
2024-03-29 Paul Eggert <eggert@cs.ucla.edu>
intprops: pacify GCC < 10 -Wsign-compare
/* Rename a file relative to open directories.
- Copyright (C) 2009-2023 Free Software Foundation, Inc.
+ Copyright (C) 2009-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
if (flags)
{
int r = renameatx_np (fd1, src, fd2, dst, RENAME_EXCL);
- if (r == 0 || errno != ENOTSUP)
+ if (r == 0 || (errno != ENOTSUP && errno != ENOSYS))
return r;
}
# endif