diff options
author | Linus Groh <mail@linusgroh.de> | 2021-01-28 23:46:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-29 08:45:56 +0100 |
commit | b7b09470ca7f08f42b0f3a6701192adbdf198870 (patch) | |
tree | 76850a3f61492bd2b84ca95275d7cd55407ba38b /Base/usr/share | |
parent | 6876b9a51497956de86a29ccc5f108b1d37e4327 (diff) | |
download | serenity-b7b09470ca7f08f42b0f3a6701192adbdf198870.zip |
Kernel: Return -ENOTDIR for non-directory mount target
The absence of this check allowed silly things like this:
# touch file
# mount /dev/hda file
Diffstat (limited to 'Base/usr/share')
-rw-r--r-- | Base/usr/share/man/man2/mount.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Base/usr/share/man/man2/mount.md b/Base/usr/share/man/man2/mount.md index 69918b89fa..3ece948f60 100644 --- a/Base/usr/share/man/man2/mount.md +++ b/Base/usr/share/man/man2/mount.md @@ -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. |