mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel/ProcFS: Add S_IFREG bit to regular files in /proc
Regular files should have regular file mode.
This commit is contained in:
parent
898b8ffcb6
commit
58f62cd1d0
Notes:
sideshowbarker
2024-07-18 07:59:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/58f62cd1d07
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ InodeMetadata ProcFSInode::metadata() const
|
|||
MutexLocker locker(m_inode_lock);
|
||||
InodeMetadata metadata;
|
||||
metadata.inode = { fsid(), m_associated_component->component_index() };
|
||||
metadata.mode = m_associated_component->required_mode();
|
||||
metadata.mode = S_IFREG | m_associated_component->required_mode();
|
||||
metadata.uid = m_associated_component->owner_user();
|
||||
metadata.gid = m_associated_component->owner_group();
|
||||
metadata.size = m_associated_component->size();
|
||||
|
|
Loading…
Reference in a new issue