mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 16:40:59 +00:00
rm: Use pledge()
This commit is contained in:
parent
a5f0b2aef0
commit
b58728ed99
|
@ -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…
Reference in a new issue