浏览代码

groupdel: Ensure the veil is closed after required files are unveiled

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

+ 1 - 0
Userland/Utilities/groupdel.cpp

@@ -19,6 +19,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
     TRY(Core::System::pledge("stdio wpath rpath cpath fattr proc exec"));
     TRY(Core::System::unveil("/etc/", "rwc"));
     TRY(Core::System::unveil("/bin/rm", "x"));
+    TRY(Core::System::unveil(nullptr, nullptr));
 
     DeprecatedString groupname;