1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

man: Use unveil()

This commit is contained in:
Brian Gianforcaro 2020-01-22 02:36:22 -08:00 committed by Andreas Kling
parent 319cb28452
commit ce6864dd79

View file

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