summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-10-06 07:33:06 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-10-06 07:33:06 +0200
commit006f11a550990b7baf3884928c3613ae7deb8eee (patch)
tree84e85525031c386264be5bb15462be5b639be734 /src/file_gz.c
parentea16ced823ca807d40dbf9c73a5af22af24021a5 (diff)
PhotoRec: distinguish .xml.gz from .gz
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index 1b2f9fb..f26c1bc 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, "<?xml version=", 14) == 0)
+ {
+ file_recovery_new->extension="xml.gz";
+ return 1;
+ }
{
unsigned int i;
for(i=0; i<d_stream.total_out && i< 256; i++)