diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-04-30 03:39:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-30 23:10:22 +0200 |
commit | 488ee56cf77e6cd840a9ef492af7ed6225773931 (patch) | |
tree | de5fa7cefe7df4949a58a3c2f6ca431411a4b749 /Kernel/FileSystem/DevPtsFS.cpp | |
parent | 71f90695c29d51ba7fab0fd4f6860df7c997547f (diff) | |
download | serenity-488ee56cf77e6cd840a9ef492af7ed6225773931.zip |
Kernel: chmod()/chown() for PTYs should return EROFS
All the other methods already do this and this is also what OpenSSH
expects when trying to change modes/ownership for devpts files.
Diffstat (limited to 'Kernel/FileSystem/DevPtsFS.cpp')
-rw-r--r-- | Kernel/FileSystem/DevPtsFS.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/DevPtsFS.cpp b/Kernel/FileSystem/DevPtsFS.cpp index 1546b3cd3a..b1df786fe5 100644 --- a/Kernel/FileSystem/DevPtsFS.cpp +++ b/Kernel/FileSystem/DevPtsFS.cpp @@ -182,12 +182,12 @@ KResult DevPtsFSInode::remove_child(const StringView&) KResult DevPtsFSInode::chmod(mode_t) { - return EPERM; + return EROFS; } KResult DevPtsFSInode::chown(uid_t, gid_t) { - return EPERM; + return EROFS; } } |