1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:37:35 +00:00

stat: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 10:43:26 +01:00
parent ffb6056675
commit 53e7490b81

View file

@ -35,6 +35,11 @@
int main(int argc, char** argv)
{
if (pledge("stdio rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
if (argc == 1) {
printf("stat <file>\n");
return 1;