rmdir: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 10:45:23 +01:00
parent 7281214af2
commit 00fa2aa0ec
Notes: sideshowbarker 2024-07-19 09:14:47 +09:00

View file

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