From c0c33a4604f9155b2c464da70f336c4fed1e5dc3 Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Fri, 27 Aug 2021 15:33:11 +0100 Subject: [PATCH] Spider: Remove wpath and cpath pledges and pledge earlier With the move to LibConfig, the wpath and cpath pledges are no longer needed. --- Userland/Games/Spider/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Userland/Games/Spider/main.cpp b/Userland/Games/Spider/main.cpp index 2cc37f4cac..0e291094e8 100644 --- a/Userland/Games/Spider/main.cpp +++ b/Userland/Games/Spider/main.cpp @@ -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; }