mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Kernel: mkdir() should use the containing directory's FS for inode creation.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user