summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/InodeFile.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-28 22:11:16 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-29 01:09:19 +0200
commitae197deb6b076fb7b49bb035cfb3e4f8304004cb (patch)
treeb8c17f95b575be4453626c983c59e0a1c59a3658 /Kernel/FileSystem/InodeFile.h
parent59335bd8eaf7c4f11bb5a9ab96373dfe8eca0893 (diff)
downloadserenity-ae197deb6b076fb7b49bb035cfb3e4f8304004cb.zip
Kernel: Strongly typed user & group ID's
Prior to this change, both uid_t and gid_t were typedef'ed to `u32`. This made it easy to use them interchangeably. Let's not allow that. This patch adds UserID and GroupID using the AK::DistinctNumeric mechanism we've already been employing for pid_t/ProcessID.
Diffstat (limited to 'Kernel/FileSystem/InodeFile.h')
-rw-r--r--Kernel/FileSystem/InodeFile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/InodeFile.h b/Kernel/FileSystem/InodeFile.h
index d60cc1584d..cc16047dc4 100644
--- a/Kernel/FileSystem/InodeFile.h
+++ b/Kernel/FileSystem/InodeFile.h
@@ -39,7 +39,7 @@ public:
virtual String absolute_path(const FileDescription&) const override;
virtual KResult truncate(u64) override;
- virtual KResult chown(FileDescription&, uid_t, gid_t) override;
+ virtual KResult chown(FileDescription&, UserID, GroupID) override;
virtual KResult chmod(FileDescription&, mode_t) override;
virtual StringView class_name() const override { return "InodeFile"; }