diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-18 13:21:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-18 13:29:54 +0100 |
commit | a5f0b2aef070d99bbe5517a928711ba5632798b9 (patch) | |
tree | 357ea9df8a953f107d65ab772c312d7456e61fea /Userland | |
parent | 03aea115897b521491f62abe905224ca448d92c9 (diff) | |
download | serenity-a5f0b2aef070d99bbe5517a928711ba5632798b9.zip |
ln: Use pledge()
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/ln.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |