mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 07:07:36 +00:00
Kernel: Oops, I mixed up st_dev and st_rdev in struct stat.
This commit is contained in:
parent
e895d6c48e
commit
0c9a2b1430
2 changed files with 3 additions and 3 deletions
|
@ -91,13 +91,13 @@ int FileDescriptor::fstat(stat* buffer)
|
|||
if (!metadata.is_valid())
|
||||
return -EIO;
|
||||
|
||||
buffer->st_dev = encoded_device(metadata.major_device, metadata.minor_device);
|
||||
buffer->st_rdev = encoded_device(metadata.major_device, metadata.minor_device);
|
||||
buffer->st_ino = metadata.inode.index();
|
||||
buffer->st_mode = metadata.mode;
|
||||
buffer->st_nlink = metadata.link_count;
|
||||
buffer->st_uid = metadata.uid;
|
||||
buffer->st_gid = metadata.gid;
|
||||
buffer->st_rdev = 0; // FIXME
|
||||
buffer->st_dev = 0; // FIXME
|
||||
buffer->st_size = metadata.size;
|
||||
buffer->st_blksize = metadata.block_size;
|
||||
buffer->st_blocks = metadata.block_count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue