1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:57:45 +00:00

cal: Add unveil and pledge promises

This commit is contained in:
David Lindbom 2022-01-17 21:06:59 +01:00 committed by Andreas Kling
parent 5c74e66f85
commit 9d7a862509

View file

@ -6,6 +6,7 @@
#include <LibCore/ArgsParser.h> #include <LibCore/ArgsParser.h>
#include <LibCore/DateTime.h> #include <LibCore/DateTime.h>
#include <LibCore/System.h>
#include <LibMain/Main.h> #include <LibMain/Main.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -89,6 +90,9 @@ static void clean_buffers()
ErrorOr<int> serenity_main(Main::Arguments arguments) ErrorOr<int> serenity_main(Main::Arguments arguments)
{ {
TRY(Core::System::pledge("stdio"));
TRY(Core::System::unveil(nullptr, nullptr));
int day = 0; int day = 0;
int month = 0; int month = 0;
int year = 0; int year = 0;