diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-23 12:31:21 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-23 12:31:21 +0100 |
commit | d117c4ccccf8841a0c7d52a407435fa0dd7496a7 (patch) | |
tree | a9aeed26c590ab8af52bd5ef3ee5f5b619fb8c0e /Userland/Utilities/truncate.cpp | |
parent | 9eb7030b55b1b7c15e443fa90810651baed6f8ae (diff) | |
download | serenity-d117c4ccccf8841a0c7d52a407435fa0dd7496a7.zip |
truncate: Add a basic set of pledge promises
Diffstat (limited to 'Userland/Utilities/truncate.cpp')
-rw-r--r-- | Userland/Utilities/truncate.cpp | 2 |
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; |