tmpfs: Set the mode of the root directory on creation
This commit is contained in:
parent
0320ffb485
commit
5623f3c699
@ -10,6 +10,7 @@ namespace TmpFS
|
|||||||
{
|
{
|
||||||
SharedPtr<FileSystem> fs = TRY(adopt_shared_if_nonnull(new (std::nothrow) FileSystem()));
|
SharedPtr<FileSystem> fs = TRY(adopt_shared_if_nonnull(new (std::nothrow) FileSystem()));
|
||||||
SharedPtr<VFS::Inode> root = TRY(fs->create_dir_inode({}));
|
SharedPtr<VFS::Inode> root = TRY(fs->create_dir_inode({}));
|
||||||
|
root->chmod(0755);
|
||||||
fs->set_root(root);
|
fs->set_root(root);
|
||||||
return (SharedPtr<VFS::FileSystem>)fs;
|
return (SharedPtr<VFS::FileSystem>)fs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user