From 53e7490b81111dc7270ad3d14a20c9cfcbe79e08 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Feb 2020 10:43:26 +0100 Subject: [PATCH] stat: Use pledge() --- Userland/stat.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/stat.cpp b/Userland/stat.cpp index cd5c9085ec..b33f89ab43 100644 --- a/Userland/stat.cpp +++ b/Userland/stat.cpp @@ -35,6 +35,11 @@ int main(int argc, char** argv) { + if (pledge("stdio rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc == 1) { printf("stat \n"); return 1;