mkdir: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 10:45:12 +01:00
parent 53e7490b81
commit 7281214af2
Notes: sideshowbarker 2024-07-19 09:14:50 +09:00

View file

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