mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user