summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2019-05-22 10:38:01 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2019-05-22 10:38:01 +0200
commitede2a1beb88f876b3cb4d093770c8ae510633ae8 (patch)
tree69a289020aa2f8ba9c7421fa8103900cb6b8fcb5 /src
parentbb856b42adf842c527398415cda300429cb52494 (diff)
PhotoRec: recover Apple numbers/pages/... as .numbers instead of .zip
Diffstat (limited to 'src')
-rw-r--r--src/file_zip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index ab25947..5d74cbd 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -307,6 +307,9 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
/* SMART Notebook */
else if(len==15 && memcmp(filename, "imsmanifest.xml", 15)==0)
*ext="notebook";
+ /* Apple Numbers */
+ else if(len==18 && memcmp(filename, "Index/Document.iwa", 18)==0)
+ *ext="numbers";
else if(len==19 && memcmp(filename, "AndroidManifest.xml", 19)==0)
*ext="apk";
else if(len==30 && memcmp(filename, "xsd/MindManagerApplication.xsd", 30)==0)