Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.2k
File.OpenFlags is missing a no_follow field #18327
Copy link
Copy link
Closed as not planned
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Description
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Dir.OpenDirOptionshas ano_followfield:zig/lib/std/fs/Dir.zig
Lines 1336 to 1337 in f36ac22
The same field should be present in
File.OpenFlagsDepends on #16606 being resolved to allow implementing
no_followforDir.accesson Linux. #16738 is also potentially relevant.EDIT: It may actually be impossible to implement this for all supported platforms, MacOS/Darwin doesn't seem to support getting a file descriptor of a symlink itself (no
O_PATHflag for theopensyscall).