From 6c7cb148471d94f2d5e4eadb910b5f3e0bff66f7 Mon Sep 17 00:00:00 2001 From: pkerling Date: Sat, 2 Mar 2019 10:35:01 +0000 Subject: [PATCH] PhotoRec: recover GnuCash .gnucash files --- src/file_gz.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/file_gz.c b/src/file_gz.c index 31f4e12a..0ef52e02 100644 --- a/src/file_gz.c +++ b/src/file_gz.c @@ -241,6 +241,12 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe file_recovery_new->extension="prproj"; return 1; } + if(memcmp(buffer_uncompr, "\nextension="gnucash"; + return 1; + } if(strstr((const char*)&buffer_uncompr, "")!=NULL) { file_recovery_new->extension="kmy";