summaryrefslogtreecommitdiffstats
path: root/src/fidentify.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
commit203df0e3a588f01ebfb60428eb1a5ab258a4969d (patch)
tree022c7facc406d0eea910638c7b41355964ee8549 /src/fidentify.c
parentc6e94c6adfe071f4510190069638d70d59675f42 (diff)
Fix some compilation warnings
Diffstat (limited to 'src/fidentify.c')
-rw-r--r--src/fidentify.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fidentify.c b/src/fidentify.c
index 2fe0310..aa68042 100644
--- a/src/fidentify.c
+++ b/src/fidentify.c
@@ -153,6 +153,22 @@ int main(int argc, char **argv)
FILE *log_handle=NULL;
file_stat_t *file_stats;
log_handle=log_open("fidentify.log", TD_LOG_CREATE);
+ if(log_handle!=NULL)
+ {
+ unsigned int i;
+ time_t my_time;
+#ifdef HAVE_DUP2
+ dup2(fileno(log_handle),2);
+#endif
+ my_time=time(NULL);
+ log_info("\n\n%s",ctime(&my_time));
+ log_info("Command line: PhotoRec");
+ for(i=1;i<argc;i++)
+ log_info(" %s", argv[i]);
+ log_info("\n\n");
+ log_flush();
+ }
+ log_info("fidentify%s, Data Recovery Utility, %s\nChristophe GRENIER <grenier@cgsecurity.org>\nhttp://www.cgsecurity.org\n", VERSION, TESTDISKDATE);
reset_list_file_enable(list_file_enable);
file_stats=init_file_stats(list_file_enable);
if(argc>1)