From 5e541aaebd43a83b0b8bc5a03f7ce1285d2f5a32 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sun, 27 Mar 2022 21:59:18 +0430 Subject: [PATCH] Shell: Keep the stdio and rpath pledges for execute_process() If the command fails, we'd like to still be capable of printing out diagnostics, so restore stdio and rpath. Fixes #13281. --- Userland/Shell/Shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index f5f480bd4dc..7b430f8eef7 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -846,7 +846,7 @@ void Shell::execute_process(Vector&& argv) { #ifdef __serenity__ for (auto& promise : m_active_promises) { - pledge("exec", promise.data.exec_promises.characters()); + pledge("stdio rpath exec", promise.data.exec_promises.characters()); for (auto& item : promise.data.unveils) unveil(item.path.characters(), item.access.characters()); }