summaryrefslogtreecommitdiffstats
path: root/src/file_arj.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-04-19 08:05:17 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-04-19 08:05:17 +0200
commit50390d87862fcc0ccc92d9a6e2456d03df75b80e (patch)
treea7b90721dd308e7e93250bc51e8f984942207cc3 /src/file_arj.c
parent159604782799ec2aa93176af0ece7b8e03f95440 (diff)
PhotoRec: get .arj date from file header
Diffstat (limited to 'src/file_arj.c')
-rw-r--r--src/file_arj.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_arj.c b/src/file_arj.c
index 1f7a735..ab5e3ea 100644
--- a/src/file_arj.c
+++ b/src/file_arj.c
@@ -138,6 +138,9 @@ static int header_check_arj(const unsigned char *buffer, const unsigned int buff
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_arj.extension;
+ file_recovery_new->time=le32(arj->ctime);
+ if(file_recovery_new->time < le32(arj->mtime))
+ file_recovery_new->time=le32(arj->mtime);
if((arj->flags&0x040)!=0)
{
file_recovery_new->calculated_file_size=le32(arj->size);