mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 17:15:26 +00:00
Kernel: fchdir() should fail for non-searchable directories
So sayeth POSIX.
This commit is contained in:
@@ -1211,6 +1211,9 @@ int Process::sys$fchdir(int fd)
|
||||
if (!description->is_directory())
|
||||
return -ENOTDIR;
|
||||
|
||||
if (!description->metadata().may_execute(*this))
|
||||
return -EACCES;
|
||||
|
||||
m_cwd = description->custody();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user