From 006f11a550990b7baf3884928c3613ae7deb8eee Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Tue, 6 Oct 2009 07:33:06 +0200 Subject: [PATCH] PhotoRec: distinguish .xml.gz from .gz --- src/file_gz.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/file_gz.c b/src/file_gz.c index 1b2f9fb1..f26c1bc7 100644 --- a/src/file_gz.c +++ b/src/file_gz.c @@ -182,6 +182,11 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe file_recovery_new->extension="RData"; return 1; } + if(memcmp(buffer_uncompr, "extension="xml.gz"; + return 1; + } { unsigned int i; for(i=0; i