summaryrefslogtreecommitdiffstats
path: root/src/file_jpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-04-21 14:15:35 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-04-21 14:15:35 +0200
commitd24ae32bf5870fb423397c6d88b16e499f6e3a62 (patch)
tree5387dae8cf0197ea3aca0392cbc22917c178ad3b /src/file_jpg.c
parentcfce3a37ce2a73b6c2bca3c770918f76010710d4 (diff)
Jpg thumbnails (t*.jpg) will also get the date/time from the EXIF information
Diffstat (limited to 'src/file_jpg.c')
-rw-r--r--src/file_jpg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_jpg.c b/src/file_jpg.c
index f6272be..498a0ae 100644
--- a/src/file_jpg.c
+++ b/src/file_jpg.c
@@ -47,6 +47,7 @@
#include "log.h"
#include "file_jpg.h"
#include "file_tiff.h"
+#include "setdate.h"
extern const file_hint_t file_hint_indd;
extern const file_hint_t file_hint_riff;
@@ -1263,6 +1264,8 @@ static uint64_t jpg_check_structure(file_recovery_t *file_recovery, const unsign
log_error("Can't write to %s: %s\n", thumbname, strerror(errno));
}
fclose(out);
+ if(file_recovery->time!=0 && file_recovery->time!=(time_t)-1)
+ set_date(thumbname, file_recovery->time, file_recovery->time);
}
else
{