mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:55:08 +00:00
Kernel: Allow sys$chmod() to modify the set-gid bit
We were incorrectly masking off the set-gid bit. Fixes #4060.
This commit is contained in:
parent
72ce4abb99
commit
b452dd13b6
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ KResult VFS::chmod(Custody& custody, mode_t mode)
|
|||
return KResult(-EROFS);
|
||||
|
||||
// Only change the permission bits.
|
||||
mode = (inode.mode() & ~04777u) | (mode & 04777u);
|
||||
mode = (inode.mode() & ~06777u) | (mode & 06777u);
|
||||
return inode.chmod(mode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue