From 5623f3c699e88ef018cfbab201b1a2d609960216 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 29 Mar 2023 01:06:26 +0200 Subject: [PATCH] tmpfs: Set the mode of the root directory on creation --- kernel/src/fs/tmpfs/FileSystem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/src/fs/tmpfs/FileSystem.cpp b/kernel/src/fs/tmpfs/FileSystem.cpp index 6947bfd1..e745a847 100644 --- a/kernel/src/fs/tmpfs/FileSystem.cpp +++ b/kernel/src/fs/tmpfs/FileSystem.cpp @@ -10,6 +10,7 @@ namespace TmpFS { SharedPtr fs = TRY(adopt_shared_if_nonnull(new (std::nothrow) FileSystem())); SharedPtr root = TRY(fs->create_dir_inode({})); + root->chmod(0755); fs->set_root(root); return (SharedPtr)fs; }