Add zip_archive_set_tempdir to specify directory to use for temp file while closing.
(NULL to place it in the same directory as the original file.)
This is needed to use libzip in OS X sandboxed applications. It's
a temporary hack that will be solved properly once we have an I/O
abstraction layer.
diff --git a/lib/zip_new.c b/lib/zip_new.c
index 62e1420..f77634a 100644
--- a/lib/zip_new.c
+++ b/lib/zip_new.c
@@ -66,6 +66,7 @@
za->entry = NULL;
za->nfile = za->nfile_alloc = 0;
za->file = NULL;
+ za->tempdir = NULL;
return za;
}