truncate: Add a basic set of pledge promises

This commit is contained in:
Andreas Kling 2021-11-23 12:31:21 +01:00
commit d117c4cccc
Notes: sideshowbarker 2024-07-18 00:48:39 +09:00

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;