Kernel: mkdir() should use the containing directory's FS for inode creation.

This commit is contained in:
Andreas Kling 2019-02-01 15:29:11 +01:00
commit 6618411fba
Notes: sideshowbarker 2024-07-19 15:54:11 +09:00
3 changed files with 5 additions and 5 deletions

View file

@ -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;
}