summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-07-26 11:57:49 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-07-26 11:57:49 +0200
commit027101c193b5a2dfb4e5145a5e65b2a0a1f29858 (patch)
tree35c1739e5ca6a364c4b178c37bfc744c7566d93c /src/file_gz.c
parent85ec5940434d74250cf83f91be404888d2de5e6f (diff)
PhotoRec: recover R, language and environment for statistical computing and graphics, .RData files
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index fa033ea..06ba9bb 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -162,6 +162,12 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
return 1;
}
#ifndef DJGPP
+ if(memcmp(buffer_uncompr, "RDX2", 4)==0)
+ {
+ /* R - language and environment for statistical computing and graphics */
+ file_recovery_new->extension="RData";
+ return 1;
+ }
{
unsigned int i;
for(i=0; i<d_stream.total_out && i< 256; i++)