diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 20:49:25 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 20:49:25 +0100 |
commit | d30d3fac6f22ef963de0e69072eeb6fda05e2119 (patch) | |
tree | 5384d01940dd4bead70cbb524c3a590e99e8f6a4 | |
parent | 409a4f775642f0a036905dae22d5010da79c3969 (diff) | |
download | serenity-d30d3fac6f22ef963de0e69072eeb6fda05e2119.zip |
id: Use pledge()
-rw-r--r-- | Userland/id.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/id.cpp b/Userland/id.cpp index 48048a88cb..2dc4bab3f1 100644 --- a/Userland/id.cpp +++ b/Userland/id.cpp @@ -14,6 +14,10 @@ static bool flag_print_gid_all = false; int main(int argc, char** argv) { + if (pledge("stdio rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } static const char* valid_option_characters = "ugGn"; int opt; while ((opt = getopt(argc, argv, valid_option_characters)) != -1) { |