mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-31 04:45:32 +00:00
Kernel: Don't crash on invalid fcntl
This commit is contained in:
committed by
Andreas Kling
parent
b24cfd36ae
commit
dce3faff08
@@ -1865,7 +1865,7 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg)
|
||||
description->set_file_flags(arg);
|
||||
break;
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
return -EINVAL;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user