PhotoRec: recover Apple numbers/pages/... as .numbers instead of .zip

This commit is contained in:
Christophe Grenier 2019-05-22 10:38:01 +02:00
parent bb856b42ad
commit ede2a1beb8

View file

@ -307,6 +307,9 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
/* SMART Notebook */ /* SMART Notebook */
else if(len==15 && memcmp(filename, "imsmanifest.xml", 15)==0) else if(len==15 && memcmp(filename, "imsmanifest.xml", 15)==0)
*ext="notebook"; *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) else if(len==19 && memcmp(filename, "AndroidManifest.xml", 19)==0)
*ext="apk"; *ext="apk";
else if(len==30 && memcmp(filename, "xsd/MindManagerApplication.xsd", 30)==0) else if(len==30 && memcmp(filename, "xsd/MindManagerApplication.xsd", 30)==0)