mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Fix file mode in statbuf structure
This commit is contained in:
parent
6d2c04d0c8
commit
ac658beb5b
@ -497,7 +497,7 @@ namespace vfs
|
|||||||
Node *node = file->node;
|
Node *node = file->node;
|
||||||
statbuf->st_dev = 0; /* FIXME: stub */
|
statbuf->st_dev = 0; /* FIXME: stub */
|
||||||
statbuf->st_ino = node->IndexNode;
|
statbuf->st_ino = node->IndexNode;
|
||||||
statbuf->st_mode = node->Type | node->Mode;
|
statbuf->st_mode = node->Type | (node->Mode & ~S_IFMT);
|
||||||
statbuf->st_nlink = 0; /* FIXME: stub */
|
statbuf->st_nlink = 0; /* FIXME: stub */
|
||||||
statbuf->st_uid = node->UserIdentifier;
|
statbuf->st_uid = node->UserIdentifier;
|
||||||
statbuf->st_gid = node->GroupIdentifier;
|
statbuf->st_gid = node->GroupIdentifier;
|
||||||
@ -521,7 +521,7 @@ namespace vfs
|
|||||||
Node *node = fd.Handle->node;
|
Node *node = fd.Handle->node;
|
||||||
statbuf->st_dev = 0; /* FIXME: stub */
|
statbuf->st_dev = 0; /* FIXME: stub */
|
||||||
statbuf->st_ino = node->IndexNode;
|
statbuf->st_ino = node->IndexNode;
|
||||||
statbuf->st_mode = node->Type | node->Mode;
|
statbuf->st_mode = node->Type | (node->Mode & ~S_IFMT);
|
||||||
statbuf->st_nlink = 0; /* FIXME: stub */
|
statbuf->st_nlink = 0; /* FIXME: stub */
|
||||||
statbuf->st_uid = node->UserIdentifier;
|
statbuf->st_uid = node->UserIdentifier;
|
||||||
statbuf->st_gid = node->GroupIdentifier;
|
statbuf->st_gid = node->GroupIdentifier;
|
||||||
@ -552,7 +552,7 @@ namespace vfs
|
|||||||
Node *node = file->node;
|
Node *node = file->node;
|
||||||
statbuf->st_dev = 0; /* FIXME: stub */
|
statbuf->st_dev = 0; /* FIXME: stub */
|
||||||
statbuf->st_ino = node->IndexNode;
|
statbuf->st_ino = node->IndexNode;
|
||||||
statbuf->st_mode = node->Type | node->Mode;
|
statbuf->st_mode = node->Type | (node->Mode & ~S_IFMT);
|
||||||
statbuf->st_nlink = 0; /* FIXME: stub */
|
statbuf->st_nlink = 0; /* FIXME: stub */
|
||||||
statbuf->st_uid = node->UserIdentifier;
|
statbuf->st_uid = node->UserIdentifier;
|
||||||
statbuf->st_gid = node->GroupIdentifier;
|
statbuf->st_gid = node->GroupIdentifier;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user