From d117c4ccccf8841a0c7d52a407435fa0dd7496a7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 23 Nov 2021 12:31:21 +0100 Subject: [PATCH] truncate: Add a basic set of pledge promises --- Userland/Utilities/truncate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Utilities/truncate.cpp b/Userland/Utilities/truncate.cpp index 7e5387ab2d..50a615fccf 100644 --- a/Userland/Utilities/truncate.cpp +++ b/Userland/Utilities/truncate.cpp @@ -20,6 +20,8 @@ enum TruncateOperation { ErrorOr serenity_main(Main::Arguments arguments) { + TRY(Core::System::pledge("stdio rpath wpath cpath", nullptr)); + const char* resize = nullptr; const char* reference = nullptr; const char* file = nullptr;