浏览代码

Shell: Add `map_fixed` to the pledges for command autocompletion

Tim Schumacher 2 年之前
父节点
当前提交
8370377832
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Shell/Shell.cpp

+ 1 - 1
Userland/Shell/Shell.cpp

@@ -1901,7 +1901,7 @@ ErrorOr<Vector<Line::CompletionSuggestion>> Shell::complete_via_program_itself(s
 
 
     // Restrict the process to effectively readonly access to the FS.
     // Restrict the process to effectively readonly access to the FS.
     auto scoped_promise = promise({
     auto scoped_promise = promise({
-        .exec_promises = "stdio rpath prot_exec no_error",
+        .exec_promises = "stdio rpath prot_exec map_fixed no_error",
         .unveils = {
         .unveils = {
             { "/", "rx" },
             { "/", "rx" },
         },
         },