aboutsummaryrefslogtreecommitdiff
path: root/tests/example_filesystems/v0.5/gocryptfs.diriv
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-11-11 21:12:21 +0100
committerJakob Unterwurzacher2026-11-11 21:12:21 +0100
commit3bfeb314d993e9bf88e343b446f4b247dead3695 (patch)
tree14c00aed50edae7e86ff5f7e3ad610ff1cdb3707 /tests/example_filesystems/v0.5/gocryptfs.diriv
parentdfdf47d790fa758a9f443764ad296e86c9007ece (diff)
syscallcompat: freebsd: Renameat2: don't follow symlinks for RENAME_NOREPLACE
The RENAME_NOREPLACE emulation checked for an existing newpath with Fstatat(..., 0), which follows symlinks. A dangling symlink at newpath returned ENOENT, so we went ahead and replaced it, violating NOREPLACE. Use AT_SYMLINK_NOFOLLOW. Also return errors other than ENOENT instead of proceeding with the rename, and drop a duplicated NOREPLACE|EXCHANGE check. The check-then-rename emulation remains inherently racy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/example_filesystems/v0.5/gocryptfs.diriv')
0 files changed, 0 insertions, 0 deletions