From a5f0b2aef070d99bbe5517a928711ba5632798b9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Feb 2020 13:21:28 +0100 Subject: [PATCH] ln: Use pledge() --- Userland/ln.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/ln.cpp b/Userland/ln.cpp index 9b4c28808d..fd462e6ede 100644 --- a/Userland/ln.cpp +++ b/Userland/ln.cpp @@ -32,6 +32,11 @@ int main(int argc, char** argv) { + if (pledge("stdio cpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + bool symbolic = false; const char* target = nullptr; const char* path = nullptr;