[PATCH] Try to open ZIP files
Miika Turkia
miika.turkia at gmail.com
Sat Jun 29 23:10:40 PDT 2013
Let's just give a try to opening ZIP files. Especially since we have one
of them in the test dives directory.
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
file.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/file.c b/file.c
index bb7121b..6063c72 100644
--- a/file.c
+++ b/file.c
@@ -233,6 +233,10 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo
if (!strcasecmp(fmt, "DLD"))
return try_to_open_zip(filename, mem, error);
+ /* Give a shot for plain ZIP */
+ if (!strcasecmp(fmt, "ZIP"))
+ return try_to_open_zip(filename, mem, error);
+
#if ONCE_COCHRAN_IS_SUPPORTED
/* Truly nasty intentionally obfuscated Cochran Anal software */
if (!strcasecmp(fmt, "CAN"))
--
1.7.9.5
More information about the subsurface
mailing list