$OpenBSD: patch-unzip_c,v 1.2 2015/10/20 13:13:52 ajacoutot Exp $
--- unzip.c.orig	Wed Oct  7 12:11:04 2015
+++ unzip.c	Wed Oct  7 12:12:09 2015
@@ -717,6 +717,9 @@ int MAIN(argc, argv)   /* return PK-type error code (e
 {
     int r;
 
+    if (pledge("stdio rpath wpath cpath fattr tty", NULL) == -1)
+        err(1, "pledge");
+
     CONSTRUCTGLOBALS();
     r = unzip(__G__ argc, argv);
     DESTROYGLOBALS();
