mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
which: Use pledge()
This commit is contained in:
parent
7266cee590
commit
0b44f9d600
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc < 2) {
|
||||
printf("usage: which <executable>\n");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue