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