From 0b44f9d6009f94ed672d3d713c464f3993cfad62 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Feb 2020 10:58:56 +0100 Subject: [PATCH] which: Use pledge() --- Userland/which.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 \n"); return 0;