diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-18 13:29:18 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-18 13:29:54 +0100 |
commit | 315538245f40ca7f74e0200558068afc657b8155 (patch) | |
tree | 09c5cc9c8747a06d5063a30dd451c8af47cb6285 /Userland/realpath.cpp | |
parent | f67f70302b9418d80d8248380ca39a299bd232f9 (diff) | |
download | serenity-315538245f40ca7f74e0200558068afc657b8155.zip |
realpath: Use pledge()
Diffstat (limited to 'Userland/realpath.cpp')
-rw-r--r-- | Userland/realpath.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/realpath.cpp b/Userland/realpath.cpp index bc8064d4e3..38de974446 100644 --- a/Userland/realpath.cpp +++ b/Userland/realpath.cpp @@ -32,6 +32,11 @@ int main(int argc, char** argv) { + if (pledge("stdio rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc != 2) { printf("usage: realpath <path>\n"); return 1; |