summaryrefslogtreecommitdiff
path: root/Kernel/VM/MemoryManager.cpp
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-07-11 13:46:05 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-11 14:59:57 +0200
commit29d53cbee2cb153a50d63e12311c70209d8e7c05 (patch)
tree290b02c338ca2fe37f1345d73e9b739a9eacf2f5 /Kernel/VM/MemoryManager.cpp
parent25e850ebb1ca4c1326fda8b8ee36251c5d91ceaf (diff)
downloadserenity-29d53cbee2cb153a50d63e12311c70209d8e7c05.zip
Kernel: Return correct error numbers for the mkdir syscall
Previously, VirtualFileSystem::mkdir() would always return ENOENT if no parent custody was returned by resolve_path(). This is incorrect when e.g. the user has no search permission in a component of the path prefix (=> EACCES), or if on component of the path prefix is a file (=> ENOTDIR). This patch fixes that behavior.
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions