diff options
| author | Jakob Unterwurzacher | 2026-11-11 21:02:25 +0100 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-11-11 21:02:25 +0100 |
| commit | d61448ec88f064eba898b566f68324859df5f7ac (patch) | |
| tree | 63f5831e405bd9a12d16129d0b1277883361d599 /internal/contentenc/offsets_test.go | |
| parent | 756cd453d7afe69fd2a00a7592fd2d9869a6f756 (diff) | |
syscallcompat: drop Faccessat helper, use unix.Faccessat with AT_SYMLINK_NOFOLLOW
Our helper did Fstatat(AT_SYMLINK_NOFOLLOW) followed by a symlink-following
unix.Faccessat(..., 0). If the file is swapped for a symlink in between, we
check access on the symlink target.
x/sys now handles AT_SYMLINK_NOFOLLOW on all our platforms: faccessat2 with
fallback emulation on Linux, libc faccessat on Darwin, and the native
syscall on FreeBSD. The Darwin breakage that caused the revert in
3d6b2685 should no longer apply.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/contentenc/offsets_test.go')
0 files changed, 0 insertions, 0 deletions
