mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 08:23:41 +00:00
wasi: allow zero inodes when reading directories
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
This commit is contained in:
committed by
Ron Evans
parent
e98dfd6c46
commit
46d2696363
@@ -53,9 +53,6 @@ func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEn
|
|||||||
if dirent == nil { // EOF
|
if dirent == nil { // EOF
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if dirent.Ino == 0 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
name := dirent.Name()
|
name := dirent.Name()
|
||||||
// Check for useless names before allocating a string.
|
// Check for useless names before allocating a string.
|
||||||
if string(name) == "." || string(name) == ".." {
|
if string(name) == "." || string(name) == ".." {
|
||||||
|
|||||||
Reference in New Issue
Block a user