소스 검색

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.
Ali Mohammad Pur 3 년 전
부모
커밋
5e541aaebd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Shell/Shell.cpp

+ 1 - 1
Userland/Shell/Shell.cpp

@@ -846,7 +846,7 @@ void Shell::execute_process(Vector<const char*>&& 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());
     }