summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:46:56 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:46:56 +0200
commit47e322c3a82061300f833002edf1858472a9c661 (patch)
treea1f1b413584f6b5a5531af7b69362bd9a524687e /src/file_gz.c
parent2b1c5f5c278c2ea329d94e288605e307990864de (diff)
PhotoRec: use tgz instead of tar.gz extension when recovering file for DOS DJGPP version
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index 157774d..2a6c039 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -164,7 +164,11 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
if(d_stream.total_out>0x110 &&
memcmp(&buffer_uncompr[0x101],tar_header_posix,sizeof(tar_header_posix))==0)
{
+#ifdef DJGPP
+ file_recovery_new->extension="tgz";
+#else
file_recovery_new->extension="tar.gz";
+#endif
return 1;
}
file_recovery_new->extension=file_hint_gz.extension;