@@ -68,6 +68,7 @@ static const char *extension_bbdoc="bbdoc";
68
68
static const char * extension_celtx = "celtx" ;
69
69
static const char * extension_docx = "docx" ;
70
70
static const char * extension_epub = "epub" ;
71
+ static const char * extension_fcstd = "FCStd" ;
71
72
static const char * extension_jar = "jar" ;
72
73
static const char * extension_kmz = "kmz" ;
73
74
static const char * extension_kra = "kra" ;
@@ -324,6 +325,7 @@ static const char *zip_parse_parse_entry_mimetype(const char *mime, const unsign
324
325
*ext == extension_celtx ||
325
326
*ext == extension_docx ||
326
327
*ext == extension_epub ||
328
+ *ext == extension_fcstd ||
327
329
*ext == extension_indd ||
328
330
*ext == extension_jar ||
329
331
*ext == extension_kmz ||
@@ -357,6 +359,7 @@ static const char *zip_parse_parse_entry_mimetype(const char *mime, const unsign
357
359
*ext == extension_celtx ||
358
360
*ext == extension_docx ||
359
361
*ext == extension_epub ||
362
+ *ext == extension_fcstd ||
360
363
*ext == extension_indd ||
361
364
*ext == extension_jar ||
362
365
*ext == extension_kmz ||
@@ -415,7 +418,7 @@ static int zip_parse_file_entry_fn(file_recovery_t *fr, const char **ext, const
415
418
first_filename [len_tmp ]= '\0' ;
416
419
}
417
420
#ifdef DEBUG_ZIP
418
- log_info ("%s\n" , filename );
421
+ log_info ("%s (len=%lu) \n" , filename , len );
419
422
#endif
420
423
if (* ext != NULL )
421
424
return 0 ;
@@ -471,6 +474,8 @@ static int zip_parse_file_entry_fn(file_recovery_t *fr, const char **ext, const
471
474
/* Celtx, Screenwriting & Media Pre-production file */
472
475
else if (len == 9 && memcmp (filename , "local.rdf" , 9 )== 0 )
473
476
* ext = extension_celtx ;
477
+ else if (len == 12 && memcmp (filename , "Document.xml" , 12 )== 0 )
478
+ * ext = extension_fcstd ;
474
479
else if (len == 13 && memcmp (filename , "document.json" , 13 )== 0 )
475
480
* ext = extension_sketch ;
476
481
else if (len > 16 && memcmp (filename , "atlases/atlas_ID" , 16 )== 0 )
@@ -527,6 +532,7 @@ static int zip_parse_file_entry_fn(file_recovery_t *fr, const char **ext, const
527
532
*ext == extension_celtx ||
528
533
*ext == extension_docx ||
529
534
*ext == extension_epub ||
535
+ *ext == extension_fcstd ||
530
536
*ext == extension_indd ||
531
537
*ext == extension_jar ||
532
538
*ext == extension_kmz ||
@@ -560,6 +566,7 @@ static int zip_parse_file_entry_fn(file_recovery_t *fr, const char **ext, const
560
566
*ext == extension_celtx ||
561
567
*ext == extension_docx ||
562
568
*ext == extension_epub ||
569
+ *ext == extension_fcstd ||
563
570
*ext == extension_indd ||
564
571
*ext == extension_jar ||
565
572
*ext == extension_kmz ||
0 commit comments