File.OpenFlags
is missing a no_follow
field
#18327
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
standard library
This issue involves writing Zig code for the standard library.
Uh oh!
There was an error while loading. Please reload this page.
Dir.OpenDirOptions
has ano_follow
field:zig/lib/std/fs/Dir.zig
Lines 1336 to 1337 in f36ac22
The same field should be present in
File.OpenFlags
Depends on #16606 being resolved to allow implementing
no_follow
forDir.access
on 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_PATH
flag for theopen
syscall).The text was updated successfully, but these errors were encountered: