@@ -103,10 +103,14 @@ if {![::zip::exists $zipfd $name]} { vfs::filesystem posixerror $::vfs::posix(ENOENT) } ::zip::stat $zipfd $name sb + + if {$sb(ino) == -1} { + vfs::filesystem posixerror $::vfs::posix(EISDIR) + } set nfd [vfs::memchan] fconfigure $nfd -translation binary seek $zipfd $sb(ino) start