From 58f62cd1d07dd0de9a2641ca444970baad91d94c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 28 Jul 2021 18:55:38 +0200 Subject: [PATCH] Kernel/ProcFS: Add S_IFREG bit to regular files in /proc Regular files should have regular file mode. --- Kernel/FileSystem/ProcFS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index 51f0c98b452..7edb4474070 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -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();