Skip to content

Commit 7f73187

Browse files
committed
std.fs.Dir: haiku fixes
1 parent ed48e2e commit 7f73187

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/std/fs/Dir.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub const Entry = struct {
1313

1414
const IteratorError = error{
1515
AccessDenied,
16+
PermissionDenied,
1617
SystemResources,
1718
/// WASI-only. The path of an entry could not be encoded as valid UTF-8.
1819
/// WASI is unable to handle paths that cannot be encoded as well-formed UTF-8.
@@ -287,7 +288,7 @@ pub const Iterator = switch (native_os) {
287288
name,
288289
false,
289290
&stat_info,
290-
0,
291+
@sizeOf(posix.Stat),
291292
)))) {
292293
.SUCCESS => {},
293294
.INVAL => unreachable,

0 commit comments

Comments
 (0)