1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Kernel: Get rid of SmapDisabler in sys$fstat()

This commit is contained in:
Andreas Kling 2020-03-10 13:34:24 +01:00
parent ddb5c995c6
commit 3803196edb
2 changed files with 7 additions and 4 deletions

View file

@ -76,7 +76,6 @@ FileDescription::~FileDescription()
KResult FileDescription::fstat(stat& buffer)
{
SmapDisabler disabler;
if (is_fifo()) {
memset(&buffer, 0, sizeof(buffer));
buffer.st_mode = 001000;