From 34dc275005bbe2e7d989c06b06edf6e26c0d4f7b Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Fri, 27 Aug 2021 15:26:34 +0100 Subject: [PATCH] Solitaire: Remove wpath and cpath pledges and pledge earlier With the move to LibConfig, the wpath and cpath pledges are no longer needed. --- Userland/Games/Solitaire/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Userland/Games/Solitaire/main.cpp b/Userland/Games/Solitaire/main.cpp index 6a5da2ca7a..54c9d82e67 100644 --- a/Userland/Games/Solitaire/main.cpp +++ b/Userland/Games/Solitaire/main.cpp @@ -23,12 +23,17 @@ 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-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"); return 1; }