mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
which: Use pledge()
This commit is contained in:
parent
7266cee590
commit
0b44f9d600
Notes:
sideshowbarker
2024-07-19 09:14:37 +09:00
Author: https://github.com/awesomekling
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
Add a link
Reference in a new issue