mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +00:00
Spider: 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
34dc275005
commit
c0c33a4604
1 changed files with 6 additions and 1 deletions
|
@ -38,12 +38,17 @@ static String format_seconds(uint64_t seconds_elapsed)
|
|||
|
||||
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_icon = GUI::Icon::default_icon("app-spider");
|
||||
|
||||
Config::pledge_domains("Spider");
|
||||
|
||||
if (pledge("stdio recvfd sendfd rpath wpath cpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue