os: os.Root: use O_NOFOLLOW_ANY on macOS #73079
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-Darwin
Performance
macOS 11 and later's
openat
supports an O_NOFOLLOW_ANY flag which causes resolution to fail if any path component contains a symlink. We can use this to implement a fast-path foros.Root
operations in the common case when the path does not contain a symlink.The text was updated successfully, but these errors were encountered: