mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +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
Notes:
sideshowbarker
2024-07-18 23:03:17 +09:00
Author: https://github.com/awesomekling
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);
|
||||
|
||||
// Only change the permission bits.
|
||||
mode = (inode.mode() & ~06777u) | (mode & 06777u);
|
||||
mode = (inode.mode() & ~07777u) | (mode & 07777u);
|
||||
return inode.chmod(mode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue