tmpfs: Set the mode of the root directory on creation

This commit is contained in:
apio 2023-03-29 01:06:26 +02:00
parent 0320ffb485
commit 5623f3c699
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -10,6 +10,7 @@ namespace TmpFS
{
SharedPtr<FileSystem> fs = TRY(adopt_shared_if_nonnull(new (std::nothrow) FileSystem()));
SharedPtr<VFS::Inode> root = TRY(fs->create_dir_inode({}));
root->chmod(0755);
fs->set_root(root);
return (SharedPtr<VFS::FileSystem>)fs;
}