summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-09-22 09:27:59 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2018-09-22 09:27:59 +0200
commit66e8962e7e42074b417fd5d8672f72289235c865 (patch)
treebd1d4cd78ded8ec78be345d729614476be080a41
parentf1ba0f81040b48ea8b258887f4598c2378828749 (diff)
PhotoRec: recover Sketch as .sketch instead of .zip
-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 d865b49..ab25947 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -276,6 +276,8 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
/* Celtx, Screenwriting & Media Pre-production file */
else if(len==9 && memcmp(filename, "local.rdf", 9)==0)
*ext="celtx";
+ else if(len==13 && memcmp(filename, "document.json", 13)==0)
+ *ext="sketch";
}
else if(file_nbr==1 && sh3d==1)
{