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
Notes: sideshowbarker 2024-07-19 09:54:08 +09:00

View file

@ -37,6 +37,13 @@ int main(int argc, char* argv[])
return 1;
}
if (unveil("/usr/share/man", "r") < 0) {
perror("unveil");
return 1;
}
unveil(nullptr, nullptr);
String name;
String section;