add pledge(2) to "mutool info" Index: source/tools/pdfinfo.c --- source/tools/pdfinfo.c.orig +++ source/tools/pdfinfo.c @@ -28,6 +28,8 @@ #include "mupdf/fitz.h" #include "mupdf/pdf.h" +#include +#include #include #include #include @@ -1046,6 +1048,12 @@ int pdfinfo_main(int argc, char **argv) { infousage(); return 1; + } + + if (pledge("stdio rpath", NULL) == -1) + { + fprintf(stderr, "pledge: %s\n", strerror(errno)); + exit(1); } ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED);