From b58728ed9903ff6772cfd80144ea47b4fe0a2777 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Feb 2020 13:23:32 +0100 Subject: [PATCH] rm: Use pledge() --- Userland/rm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/rm.cpp b/Userland/rm.cpp index 8c2a7c325f..b1a55cc18d 100644 --- a/Userland/rm.cpp +++ b/Userland/rm.cpp @@ -73,6 +73,11 @@ int remove(bool recursive, String path) int main(int argc, char** argv) { + if (pledge("stdio rpath cpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + bool recursive = false; const char* path = nullptr;