summaryrefslogtreecommitdiff
path: root/Userland/Utilities/truncate.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-23 12:31:21 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-23 12:31:21 +0100
commitd117c4ccccf8841a0c7d52a407435fa0dd7496a7 (patch)
treea9aeed26c590ab8af52bd5ef3ee5f5b619fb8c0e /Userland/Utilities/truncate.cpp
parent9eb7030b55b1b7c15e443fa90810651baed6f8ae (diff)
downloadserenity-d117c4ccccf8841a0c7d52a407435fa0dd7496a7.zip
truncate: Add a basic set of pledge promises
Diffstat (limited to 'Userland/Utilities/truncate.cpp')
-rw-r--r--Userland/Utilities/truncate.cpp2
1 files changed, 2 insertions, 0 deletions
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<int> 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;