1
Fork 0
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:
Andreas Kling 2019-02-01 15:29:11 +01:00
parent 33e7df5955
commit 6618411fba
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;
}