From 22851287b126e065df21f34d13094e5cfb1961e3 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Wed, 16 Jun 2021 12:52:55 +0200 Subject: Spreadsheet: Pledge 'fattr' to avoid crashing after exporting as csv --- Userland/Applications/Spreadsheet/main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Userland/Applications/Spreadsheet') diff --git a/Userland/Applications/Spreadsheet/main.cpp b/Userland/Applications/Spreadsheet/main.cpp index 8ed747ee8d..a4fbd2f573 100644 --- a/Userland/Applications/Spreadsheet/main.cpp +++ b/Userland/Applications/Spreadsheet/main.cpp @@ -22,18 +22,13 @@ int main(int argc, char* argv[]) { - if (pledge("stdio recvfd sendfd rpath unix cpath wpath thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath fattr unix cpath wpath thread", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio recvfd sendfd thread rpath cpath wpath unix", nullptr) < 0) { - perror("pledge"); - return 1; - } - const char* filename = nullptr; Core::ArgsParser args_parser; -- cgit v1.2.3