mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
Solitaire: Remove wpath and cpath pledges and pledge earlier
With the move to LibConfig, the wpath and cpath pledges are no longer needed.
This commit is contained in:
parent
4332b35798
commit
34dc275005
Notes:
sideshowbarker
2024-07-18 05:10:02 +09:00
Author: https://github.com/Lubrsi
Commit: 34dc275005
Pull-request: https://github.com/SerenityOS/serenity/pull/9643
1 changed files with 6 additions and 1 deletions
|
@ -23,12 +23,17 @@
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio recvfd sendfd rpath unix", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
auto app = GUI::Application::construct(argc, argv);
|
auto app = GUI::Application::construct(argc, argv);
|
||||||
auto app_icon = GUI::Icon::default_icon("app-solitaire");
|
auto app_icon = GUI::Icon::default_icon("app-solitaire");
|
||||||
|
|
||||||
Config::pledge_domains("Solitaire");
|
Config::pledge_domains("Solitaire");
|
||||||
|
|
||||||
if (pledge("stdio recvfd sendfd rpath wpath cpath", nullptr) < 0) {
|
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||||
perror("pledge");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue