From 46d2696363271dc3ca11d0672b255b25d72afbc2 Mon Sep 17 00:00:00 2001 From: Achille Roussel Date: Thu, 6 Jul 2023 11:18:04 -0700 Subject: [PATCH] wasi: allow zero inodes when reading directories Signed-off-by: Achille Roussel --- src/os/dir_wasi.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/os/dir_wasi.go b/src/os/dir_wasi.go index 088dcc7f..60a941f2 100644 --- a/src/os/dir_wasi.go +++ b/src/os/dir_wasi.go @@ -53,9 +53,6 @@ func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEn if dirent == nil { // EOF break } - if dirent.Ino == 0 { - continue - } name := dirent.Name() // Check for useless names before allocating a string. if string(name) == "." || string(name) == ".." {