mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Kernel: Return -ENOTDIR for non-directory mount target
The absence of this check allowed silly things like this: # touch file # mount /dev/hda file
This commit is contained in:
parent
6876b9a514
commit
b7b09470ca
Notes:
sideshowbarker
2024-07-18 22:46:54 +09:00
Author: https://github.com/linusg
Commit: b7b09470ca
Pull-request: https://github.com/SerenityOS/serenity/pull/5157
2 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,7 @@ launch the initial userspace process.
|
|||
* `EBADF`: If the `source_fd` is not valid, and either `fs_type` specifies a
|
||||
file-backed filesystem (and not a pseudo filesystem), or `MS_BIND` is
|
||||
specified in flags.
|
||||
* `ENOTDIR`: If `target` is not a directory.
|
||||
|
||||
All of the usual path resolution errors may also occur.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue