summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authorstelar7 <dudedbz@gmail.com>2021-06-16 12:52:55 +0200
committerAli Mohammad Pur <ali.mpfard@gmail.com>2021-06-17 18:49:44 +0430
commit22851287b126e065df21f34d13094e5cfb1961e3 (patch)
tree4097f63d724b6a3e83470424493ff6358e81ea1b /Userland/Applications/Spreadsheet
parentac6a3d068d234793debf0b210dcffdfcfd928fd9 (diff)
downloadserenity-22851287b126e065df21f34d13094e5cfb1961e3.zip
Spreadsheet: Pledge 'fattr' to avoid crashing after exporting as csv
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r--Userland/Applications/Spreadsheet/main.cpp7
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;