wasi: allow zero inodes when reading directories

Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
Этот коммит содержится в:
Achille Roussel 2023-07-06 11:18:04 -07:00 коммит произвёл Ron Evans
родитель e98dfd6c46
коммит 46d2696363

Просмотреть файл

@ -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) == ".." {