From 140d2e41659d394890c5b2c7ed17b79d14d5768a Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 30 Jun 2013 09:10:40 +0300 Subject: [PATCH] Try to open ZIP files 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 Signed-off-by: Dirk Hohndel --- file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/file.c b/file.c index bb7121bbd..6063c72b6 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"))