summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/which.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/which.cpp b/Userland/which.cpp
index 31c3c47ea6..67a9bb8106 100644
--- a/Userland/which.cpp
+++ b/Userland/which.cpp
@@ -31,6 +31,11 @@
int main(int argc, char** argv)
{
+ if (pledge("stdio rpath", nullptr) < 0) {
+ perror("pledge");
+ return 1;
+ }
+
if (argc < 2) {
printf("usage: which <executable>\n");
return 0;