mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
man: Use unveil()
This commit is contained in:
parent
319cb28452
commit
ce6864dd79
1 changed files with 7 additions and 0 deletions
|
@ -37,6 +37,13 @@ int main(int argc, char* argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unveil("/usr/share/man", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
String name;
|
String name;
|
||||||
String section;
|
String section;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue