mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:18:11 +00:00
realpath: Use pledge()
This commit is contained in:
parent
f67f70302b
commit
315538245f
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,11 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc != 2) {
|
||||
printf("usage: realpath <path>\n");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue