mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
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.
This commit is contained in:
parent
71f90695c2
commit
488ee56cf7
Notes:
sideshowbarker
2024-07-18 18:51:33 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/488ee56cf77 Pull-request: https://github.com/SerenityOS/serenity/pull/6754
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue