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

add pledge(2) to "mutool poster"

--- source/tools/pdfposter.c.orig	Sun Jan 17 12:21:27 2016
+++ source/tools/pdfposter.c	Sun Jan 17 12:22:56 2016
@@ -189,6 +189,12 @@ int pdfposter_main(int argc, char **argv)
 		outfile = argv[fz_optind++];
 	}
 
+	if (pledge("stdio rpath wpath cpath", NULL) == -1)
+	{
+		fprintf(stderr, "pledge: %s\n", strerror(errno));
+		exit(1);
+	}
+
 	ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED);
 	if (!ctx)
 	{
