1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix unode readdirents not setting struct kernel_dirent::d_type.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-01-03 19:41:04 +01:00
parent bfc8570bb8
commit ffff20be35

View file

@ -924,6 +924,7 @@ ssize_t Unode::readdirents(ioctx_t* ctx, struct kernel_dirent* dirent,
entry.d_namelen = resp.namelen;
entry.d_dev = (dev_t) server;
entry.d_ino = resp.ino;
entry.d_type = resp.type;
if ( !ctx->copy_from_src(dirent, &entry, sizeof(entry)) )
goto break_if;