kernel: Handle unnamed pipes in stat()
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
1094042a7d
commit
9cdfdbc6f9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user