mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
stat: Use pledge()
This commit is contained in:
parent
ffb6056675
commit
53e7490b81
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc == 1) {
|
||||
printf("stat <file>\n");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue