1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

md: Use pledge()

This commit is contained in:
Brian Gianforcaro 2020-01-12 16:12:18 -08:00 committed by Andreas Kling
parent a77da7f245
commit e45a4b0931

View file

@ -5,6 +5,11 @@
int main(int argc, char* argv[])
{
if (pledge("stdio rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
const char* file_name = nullptr;
bool html = false;
@ -27,6 +32,11 @@ int main(int argc, char* argv[])
return 1;
}
if (pledge("stdio", nullptr) < 0) {
perror("pledge");
return 1;
}
auto buffer = file->read_all();
dbg() << "Read size " << buffer.size();