diff options
author | Achille Roussel <[email protected]> | 2023-07-06 11:18:04 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-07-07 09:56:38 +0200 |
commit | 46d2696363271dc3ca11d0672b255b25d72afbc2 (patch) | |
tree | 74bb405195e4cbc381943dec6c72e5e731931d76 | |
parent | e98dfd6c4653a2fb1e3a64c0711808b06c5ae839 (diff) | |
download | tinygo-46d2696363271dc3ca11d0672b255b25d72afbc2.tar.gz tinygo-46d2696363271dc3ca11d0672b255b25d72afbc2.zip |
wasi: allow zero inodes when reading directories
Signed-off-by: Achille Roussel <[email protected]>
-rw-r--r-- | src/os/dir_wasi.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/os/dir_wasi.go b/src/os/dir_wasi.go index 088dcc7ff..60a941f24 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) == ".." { |