summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-01-05 07:59:22 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-01-05 07:59:22 +0100
commitab7f90998dc36f2ab775d02afc14b1968d7537fa (patch)
tree162731c14e58e073f3a407c49c71828c8f780a50 /src/file_zip.c
parent1b0252227eba5e93f5349ff4d5029d0a095ed4ff (diff)
PhotoRec: distinguish zip archive from Mozilla Cross-Platform Install .xpi
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index b6f9b0b..b03927d 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -208,6 +208,8 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
{
if(strncasecmp(filename, "META-INF/MANIFEST.MF", 20)==0)
*ext="jar";
+ else if(strcasecmp(filename, "chrome.manifest")==0)
+ *ext="xpi";
}
free(filename);
}