Ignore .DS_Store files and other hidden files when parsing Zip files
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index f70ba25..0f9cc99 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -289,6 +289,10 @@
 			/* check if we have a "Payload/.../" name */
 			len = strlen(name);
 			if (!strncmp(name, "Payload/", 8) && (len > 8)) {
+				/* skip hidden files */
+				if (name[8] == '.')
+					continue;
+
 				/* locate the second directory delimiter */
 				const char* p = name + 8;
 				do {