diff options
author | stelar7 <dudedbz@gmail.com> | 2021-06-16 12:52:55 +0200 |
---|---|---|
committer | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-06-17 18:49:44 +0430 |
commit | 22851287b126e065df21f34d13094e5cfb1961e3 (patch) | |
tree | 4097f63d724b6a3e83470424493ff6358e81ea1b /Userland/Applications/Spreadsheet/main.cpp | |
parent | ac6a3d068d234793debf0b210dcffdfcfd928fd9 (diff) | |
download | serenity-22851287b126e065df21f34d13094e5cfb1961e3.zip |
Spreadsheet: Pledge 'fattr' to avoid crashing after exporting as csv
Diffstat (limited to 'Userland/Applications/Spreadsheet/main.cpp')
-rw-r--r-- | Userland/Applications/Spreadsheet/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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; |