mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Kernel: mkdir() should use the containing directory's FS for inode creation.
This commit is contained in:
parent
33e7df5955
commit
6618411fba
3 changed files with 5 additions and 5 deletions
|
@ -1869,7 +1869,7 @@ int Process::sys$mkdir(const char* pathname, mode_t mode)
|
|||
if (pathname_length >= 255)
|
||||
return -ENAMETOOLONG;
|
||||
int error;
|
||||
if (!VFS::the().mkdir(String(pathname, pathname_length), mode, cwd_inode()->identifier(), error))
|
||||
if (!VFS::the().mkdir(String(pathname, pathname_length), mode, *cwd_inode(), error))
|
||||
return error;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue