os: os.Root: use O_RESOLVE_BENEATH on FreeBSD #73078
Labels
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
NeedsFix
The path to resolution is known, but the work has not been done.
OS-FreeBSD
Performance
FreeBSD's
openat
supports anO_RESOLVE_BENEATH
flag which limits path resolution to occur within the starting directory. We should use it when available.I'm not sure when
O_RESOLVE_BENEATH
was added; we may need to support a fallback on older FreeBSDs.The text was updated successfully, but these errors were encountered: