mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
realpath: Use pledge()
This commit is contained in:
parent
f67f70302b
commit
315538245f
|
@ -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…
Reference in a new issue