mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 17:25:10 +00:00
Kernel: Remove SmapDisablers in fchmod() and fchown()
This commit is contained in:
parent
b1ffde6199
commit
de69f84868
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
int Process::sys$fchmod(int fd, mode_t mode)
|
||||||
{
|
{
|
||||||
SmapDisabler disabler;
|
|
||||||
auto description = file_description(fd);
|
auto description = file_description(fd);
|
||||||
if (!description)
|
if (!description)
|
||||||
return -EBADF;
|
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)
|
int Process::sys$fchown(int fd, uid_t uid, gid_t gid)
|
||||||
{
|
{
|
||||||
SmapDisabler disabler;
|
|
||||||
auto description = file_description(fd);
|
auto description = file_description(fd);
|
||||||
if (!description)
|
if (!description)
|
||||||
return -EBADF;
|
return -EBADF;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue