mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Honor permission mode when creating new directories in DevTmpFS
This commit is contained in:
parent
f7f14d52e0
commit
e23dda81de
Notes:
sideshowbarker
2024-07-17 18:49:27 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/e23dda81de Pull-request: https://github.com/SerenityOS/serenity/pull/12518 Issue: https://github.com/SerenityOS/serenity/issues/12457
1 changed files with 1 additions and 0 deletions
|
@ -258,6 +258,7 @@ ErrorOr<NonnullRefPtr<Inode>> DevTmpFSDirectoryInode::create_child(StringView na
|
|||
if (metadata.is_directory()) {
|
||||
auto name_kstring = TRY(KString::try_create(name));
|
||||
auto new_directory_inode = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) DevTmpFSDirectoryInode(fs(), move(name_kstring))));
|
||||
TRY(new_directory_inode->chmod(mode));
|
||||
m_nodes.append(*new_directory_inode);
|
||||
return new_directory_inode;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue