rm: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 13:23:32 +01:00
parent a5f0b2aef0
commit b58728ed99

View file

@ -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;