Skip to content

Commit a5f0b2a

Browse files
committed
ln: Use pledge()
1 parent 03aea11 commit a5f0b2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Userland/ln.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
int main(int argc, char** argv)
3434
{
35+
if (pledge("stdio cpath", nullptr) < 0) {
36+
perror("pledge");
37+
return 1;
38+
}
39+
3540
bool symbolic = false;
3641
const char* target = nullptr;
3742
const char* path = nullptr;

0 commit comments

Comments
 (0)