1
Fork 0
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:
Gunnar Beutner 2021-04-30 03:39:39 +02:00 committed by Andreas Kling
parent 71f90695c2
commit 488ee56cf7

View file

@ -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;
}
}