realpath: Use pledge()

This commit is contained in:
Andreas Kling 2020-02-18 13:29:18 +01:00
parent f67f70302b
commit 315538245f

View file

@ -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;