kernel: Handle unnamed pipes in stat()
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
apio 2023-05-23 20:49:26 +02:00
parent 1094042a7d
commit 9cdfdbc6f9
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -40,7 +40,7 @@ Result<u64> sys_fstatat(Registers*, SyscallArgs args)
kstat.st_uid = inode->uid();
kstat.st_gid = inode->gid();
kstat.st_size = inode->size();
kstat.st_dev = inode->fs()->host_device_id();
kstat.st_dev = inode->fs() ? inode->fs()->host_device_id() : 0;
kstat.st_rdev = inode->device_id();
if (!MemoryManager::copy_to_user_typed(st, &kstat)) return err(EFAULT);