summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/FileDescriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/FileSystem/FileDescriptor.cpp')
-rw-r--r--Kernel/FileSystem/FileDescriptor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Kernel/FileSystem/FileDescriptor.cpp b/Kernel/FileSystem/FileDescriptor.cpp
index f7e7a36027..0fb1f71b9f 100644
--- a/Kernel/FileSystem/FileDescriptor.cpp
+++ b/Kernel/FileSystem/FileDescriptor.cpp
@@ -324,3 +324,10 @@ void FileDescriptor::set_file_flags(dword flags)
m_should_append = flags & O_APPEND;
m_file_flags = flags;
}
+
+KResult FileDescriptor::chown(uid_t uid, gid_t gid)
+{
+ if (!m_inode)
+ return KResult(-EINVAL);
+ return m_inode->chown(uid, gid);
+}