mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
man: Use unveil()
This commit is contained in:
parent
319cb28452
commit
ce6864dd79
Notes:
sideshowbarker
2024-07-19 09:54:08 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/ce6864dd79a Pull-request: https://github.com/SerenityOS/serenity/pull/1109
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue