1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

basename: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 13:14:55 +01:00
parent 35ba4bf005
commit 0bef6c9d78

View file

@ -29,6 +29,11 @@
int main(int argc, char** argv)
{
if (pledge("stdio", nullptr) < 0) {
perror("pledge");
return 1;
}
if (argc != 2) {
printf("usage: basename <path>\n");
return 1;