rmdir: Use pledge()
This commit is contained in:
parent
7281214af2
commit
00fa2aa0ec
Notes:
sideshowbarker
2024-07-19 09:14:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/00fa2aa0ec2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue