1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:55:06 +00:00

Kernel: Remove SmapDisablers in fchmod() and fchown()

This commit is contained in:
Andreas Kling 2020-01-10 12:55:14 +01:00
parent b1ffde6199
commit de69f84868

View file

@ -2596,7 +2596,6 @@ int Process::sys$chmod(const char* user_path, size_t path_length, mode_t mode)
int Process::sys$fchmod(int fd, mode_t mode)
{
SmapDisabler disabler;
auto description = file_description(fd);
if (!description)
return -EBADF;
@ -2605,7 +2604,6 @@ int Process::sys$fchmod(int fd, mode_t mode)
int Process::sys$fchown(int fd, uid_t uid, gid_t gid)
{
SmapDisabler disabler;
auto description = file_description(fd);
if (!description)
return -EBADF;