diff options
Diffstat (limited to 'Kernel/Syscalls/unlink.cpp')
-rw-r--r-- | Kernel/Syscalls/unlink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/unlink.cpp b/Kernel/Syscalls/unlink.cpp index bc4d016ffd..98526ed9f9 100644 --- a/Kernel/Syscalls/unlink.cpp +++ b/Kernel/Syscalls/unlink.cpp @@ -13,7 +13,7 @@ namespace Kernel { ErrorOr<FlatPtr> Process::sys$unlink(Userspace<const char*> user_path, size_t path_length) { VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) - require_promise(Pledge::cpath); + TRY(require_promise(Pledge::cpath)); auto path = TRY(get_syscall_path_argument(user_path, path_length)); TRY(VirtualFileSystem::the().unlink(path->view(), current_directory())); return 0; |