From 14f075b26daba50c3fd3a0a60b7772cb087bfa40 Mon Sep 17 00:00:00 2001 From: Marco Cutecchia Date: Sat, 16 Jan 2021 22:39:42 +0100 Subject: [PATCH] SoundPlayer: Added 'shared_buffer' to pledge This fixes a crash that occured when opening a file due to not pledging 'shared_buffer' --- Userland/Applications/SoundPlayer/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Applications/SoundPlayer/main.cpp b/Userland/Applications/SoundPlayer/main.cpp index 45752c089b6..3958365abee 100644 --- a/Userland/Applications/SoundPlayer/main.cpp +++ b/Userland/Applications/SoundPlayer/main.cpp @@ -37,14 +37,14 @@ int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd accept rpath thread unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread unix cpath fattr shared_buffer", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio recvfd sendfd accept rpath thread unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread unix shared_buffer", nullptr) < 0) { perror("pledge"); return 1; } @@ -52,7 +52,7 @@ int main(int argc, char** argv) auto audio_client = Audio::ClientConnection::construct(); audio_client->handshake(); - if (pledge("stdio recvfd sendfd accept rpath thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread shared_buffer", nullptr) < 0) { perror("pledge"); return 1; }