mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
darwin: getdents: entry with d_ino==0 should be skipped
This commit is contained in:
parent
2b7781d82a
commit
ad2ff9e65d
@ -352,7 +352,7 @@ pub const Dir = struct {
|
||||
|
||||
const name = @ptrCast([*]u8, &darwin_entry.d_name)[0..darwin_entry.d_namlen];
|
||||
|
||||
if (mem.eql(u8, name, ".") or mem.eql(u8, name, "..")) {
|
||||
if (mem.eql(u8, name, ".") or mem.eql(u8, name, "..") or (darwin_entry.d_ino == 0)) {
|
||||
continue :start_over;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user