1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

truncate: Add a basic set of pledge promises

This commit is contained in:
Andreas Kling 2021-11-23 12:31:21 +01:00
parent 9eb7030b55
commit d117c4cccc

View file

@ -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;