summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/md.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/md.cpp b/Userland/md.cpp
index 31ef0fe421..7c471e05db 100644
--- a/Userland/md.cpp
+++ b/Userland/md.cpp
@@ -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();