ln: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 13:21:28 +01:00
parent 03aea11589
commit a5f0b2aef0
Notes: sideshowbarker 2024-07-19 09:14:02 +09:00

View file

@ -32,6 +32,11 @@
int main(int argc, char** argv)
{
if (pledge("stdio cpath", nullptr) < 0) {
perror("pledge");
return 1;
}
bool symbolic = false;
const char* target = nullptr;
const char* path = nullptr;