mirror of
https://github.com/RGBCube/serenity
synced 2025-06-30 14:32:11 +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
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
Add a link
Reference in a new issue