summaryrefslogtreecommitdiffstats
path: root/src/phrecn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-04-27 22:10:52 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-04-27 22:10:52 +0200
commitd2de73de3198a4f565440307d1ea513617fecb9e (patch)
tree77af716f7e37b20580f9dbfdea8ac299a65f5227 /src/phrecn.c
parentf9ac32559d253761a21a604c757be1607598324f (diff)
PhotoRec: generates Digital Forensics XML report
Diffstat (limited to 'src/phrecn.c')
-rw-r--r--src/phrecn.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 6a725d5..85c10b4 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -76,6 +76,7 @@
#include "phnc.h"
#include "phbs.h"
#include "file_found.h"
+#include "dfxml.h"
/* #define DEBUG */
/* #define DEBUG_BF */
@@ -762,7 +763,13 @@ int photorec(disk_t *disk_car, partition_t *partition, const int verbose, const
file_stats=init_file_stats(files_enable);
real_start_time=time(NULL);
- dir_num=photorec_mkdir(recup_dir,dir_num);
+ /* make the first recup_dir */
+ dir_num=photorec_mkdir(recup_dir, dir_num);
+
+ /* Open the XML output file */
+ xml_open(recup_dir, dir_num);
+ xml_setup(disk_car, partition);
+
#if 0
test_files(disk_car, partition, list_search_space, recup_dir, &dir_num, &file_nbr);
#endif
@@ -1060,6 +1067,8 @@ int photorec(disk_t *disk_car, partition_t *partition, const int verbose, const
free(file_stats);
free_header_check();
free(new_recup_dir);
+ xml_shutdown();
+ xml_close();
return 0;
}