$OpenBSD: patch-source_tools_pdfinfo_c,v 1.1 2016/01/19 05:20:51 semarie Exp $

add pledge(2) to "mutool info"

--- source/tools/pdfinfo.c.orig	Sun Jan 17 10:20:26 2016
+++ source/tools/pdfinfo.c	Sun Jan 17 10:23:26 2016
@@ -1061,6 +1061,12 @@ int pdfinfo_main(int argc, char **argv)
 	if (fz_optind == argc)
 		infousage();
 
+	if (pledge("stdio rpath", NULL) == -1)
+	{
+		fprintf(stderr, "pledge: %s\n", strerror(errno));
+		exit(1);
+	}
+
 	ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED);
 	if (!ctx)
 	{
