Kernel: Inode::create_file() now takes uid and gid as parameters

This commit is contained in:
2023-07-10 13:32:10 +03:00
parent f1089e2b8a
commit 3b5bc63d1b
6 changed files with 12 additions and 8 deletions

View File

@@ -567,7 +567,7 @@ namespace Kernel
auto file_name = absolute_path.sv().substring(index);
auto parent_file = TRY(VirtualFileSystem::get().file_from_absolute_path(m_credentials, directory, O_WRONLY));
TRY(parent_file.inode->create_file(file_name, mode));
TRY(parent_file.inode->create_file(file_name, mode, m_credentials.euid(), m_credentials.egid()));
return 0;
}