mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
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.
This commit is contained in:
parent
46ad69cd1e
commit
5e541aaebd
Notes:
sideshowbarker
2024-07-17 16:39:16 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/5e541aaebd Pull-request: https://github.com/SerenityOS/serenity/pull/13296 Issue: https://github.com/SerenityOS/serenity/issues/13280 Issue: https://github.com/SerenityOS/serenity/issues/13281 Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -846,7 +846,7 @@ void Shell::execute_process(Vector<const char*>&& argv)
|
||||||
{
|
{
|
||||||
#ifdef __serenity__
|
#ifdef __serenity__
|
||||||
for (auto& promise : m_active_promises) {
|
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)
|
for (auto& item : promise.data.unveils)
|
||||||
unveil(item.path.characters(), item.access.characters());
|
unveil(item.path.characters(), item.access.characters());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue