From ede2a1beb88f876b3cb4d093770c8ae510633ae8 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Wed, 22 May 2019 10:38:01 +0200 Subject: [PATCH] PhotoRec: recover Apple numbers/pages/... as .numbers instead of .zip --- src/file_zip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/file_zip.c b/src/file_zip.c index ab259475..5d74cbd0 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)