| ... | @@ -352,7 +352,7 @@ pub const Dir = struct { | ... | @@ -352,7 +352,7 @@ pub const Dir = struct { |
| 352 | | 352 | |
| 353 | const name = @ptrCast([*]u8, &darwin_entry.d_name)[0..darwin_entry.d_namlen]; | 353 | const name = @ptrCast([*]u8, &darwin_entry.d_name)[0..darwin_entry.d_namlen]; |
| 354 | | 354 | |
| 355 | if (mem.eql(u8, name, ".") or mem.eql(u8, name, "..")) { | 355 | if (mem.eql(u8, name, ".") or mem.eql(u8, name, "..") or (darwin_entry.d_ino == 0)) { |
| 356 | continue :start_over; | 356 | continue :start_over; |
| 357 | } | 357 | } |
| 358 | | 358 | |