Skip to content

Commit 46d2696

Browse files
achille-rousseldeadprogram
authored andcommitted
wasi: allow zero inodes when reading directories
Signed-off-by: Achille Roussel <[email protected]>
1 parent e98dfd6 commit 46d2696

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/os/dir_wasi.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEn
5353
if dirent == nil { // EOF
5454
break
5555
}
56-
if dirent.Ino == 0 {
57-
continue
58-
}
5956
name := dirent.Name()
6057
// Check for useless names before allocating a string.
6158
if string(name) == "." || string(name) == ".." {

0 commit comments

Comments
 (0)