diff --git a/Userland/env.cpp b/Userland/env.cpp index 57f32ba884..1bbc46cc1c 100644 --- a/Userland/env.cpp +++ b/Userland/env.cpp @@ -29,6 +29,11 @@ int main(int, char**) { + if (pledge("stdio", nullptr) < 0) { + perror("pledge"); + return 1; + } + for (size_t i = 0; environ[i]; ++i) printf("%s\n", environ[i]); return 0;