diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-18 13:23:32 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-18 13:29:54 +0100 |
commit | b58728ed9903ff6772cfd80144ea47b4fe0a2777 (patch) | |
tree | a86530b04ac48bc49b34d0a6f75ac505a6fd1881 | |
parent | a5f0b2aef070d99bbe5517a928711ba5632798b9 (diff) | |
download | serenity-b58728ed9903ff6772cfd80144ea47b4fe0a2777.zip |
rm: Use pledge()
-rw-r--r-- | Userland/rm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |