mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
rm: Use pledge()
This commit is contained in:
parent
a5f0b2aef0
commit
b58728ed99
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,11 @@ int remove(bool recursive, String path)
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath cpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool recursive = false;
|
||||
const char* path = nullptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue