]> Sergey Matveev's repositories - public-inbox.git/commit
syscall: fallback to rename on renameat2 EINVAL
authorDominique Martinet <asmadeus@codewreck.org>
Thu, 9 Dec 2021 02:50:51 +0000 (11:50 +0900)
committerEric Wong <e@80x24.org>
Tue, 1 Feb 2022 09:32:17 +0000 (09:32 +0000)
commitd8f1a9f189f0d74887cbb896caacaf7f1f256607
tree63bef71ddb812a73d59e1ba73efcf6d662e87f1a
parent14fa0abdcc7b6513540e529375e53edd74ce13e8
syscall: fallback to rename on renameat2 EINVAL

ZFS appears to incorrectly return EINVAL on renameat2 when the operation is not
supported:
renameat2(AT_FDCWD, "...", AT_FDCWD, "...", RENAME_NOREPLACE) = -1 EINVAL

Fall back to the racy rename in this case as well:
lib/PublicInbox/Syscall.pm