summaryrefslogtreecommitdiffstats
path: root/src/file_sql.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-08-18 09:05:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-08-18 09:05:39 +0200
commitbfe5d06418cd70da6eb42e6ea50c862e6567de46 (patch)
treea47bc258635a25b30ae2eeeef9d147c78602e169 /src/file_sql.c
parent4cacfdab26e7490f38583ffe3f7a234ceda572dd (diff)
PhotoRec: use a short extension when recovering sqlite files with DOS version
Diffstat (limited to 'src/file_sql.c')
-rw-r--r--src/file_sql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_sql.c b/src/file_sql.c
index c7f9da6..9c49373 100644
--- a/src/file_sql.c
+++ b/src/file_sql.c
@@ -56,7 +56,11 @@ static int header_check_sqlite(const unsigned char *buffer, const unsigned int b
if(memcmp(buffer,sqlite_header,sizeof(sqlite_header))==0)
{
reset_file_recovery(file_recovery_new);
+#ifdef DJGPP
+ file_recovery_new->extension="sql";
+#else
file_recovery_new->extension=file_hint_sqlite.extension;
+#endif
return 1;
}
return 0;