mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Kernel: Allow sys$chmod() to change the sticky bit
We were incorrectly masking off the sticky bit when setting file modes.
This commit is contained in:
parent
8601108e21
commit
b7248be251
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ KResult VFS::chmod(Custody& custody, mode_t mode)
|
||||||
return KResult(-EROFS);
|
return KResult(-EROFS);
|
||||||
|
|
||||||
// Only change the permission bits.
|
// Only change the permission bits.
|
||||||
mode = (inode.mode() & ~06777u) | (mode & 06777u);
|
mode = (inode.mode() & ~07777u) | (mode & 07777u);
|
||||||
return inode.chmod(mode);
|
return inode.chmod(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue