diff --git a/Userland/touch.cpp b/Userland/touch.cpp index 7ce11f2d4c..574e97790f 100644 --- a/Userland/touch.cpp +++ b/Userland/touch.cpp @@ -50,6 +50,11 @@ static bool file_exists(const char* path) int main(int argc, char** argv) { + if (pledge("stdio rpath cpath fattr", nullptr)) { + perror("pledge"); + return 1; + } + if (argc != 2) { fprintf(stderr, "usage: touch \n"); return 1;