1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

env: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 13:19:10 +01:00
parent b2f9a60bdb
commit 4b0e0bd9b8

View file

@ -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;