From 7281214af2c908868b09a139d8284d82cf075e70 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Feb 2020 10:45:12 +0100 Subject: [PATCH] mkdir: Use pledge() --- Userland/mkdir.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/mkdir.cpp b/Userland/mkdir.cpp index 20f032df820..1806a795b13 100644 --- a/Userland/mkdir.cpp +++ b/Userland/mkdir.cpp @@ -34,6 +34,11 @@ int main(int argc, char** argv) { + if (pledge("stdio cpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc != 2) { printf("usage: mkdir \n"); return 1;