summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-11-15 07:16:09 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-11-15 07:16:09 +0100
commit681a2531a2229c23e10275f8ee566201a729a3e1 (patch)
treecccf7cc7b2cc1f36d53a08f5025414ce349b3d56 /src/photorec.c
parente97359ef26949b69100d3c180f9b2852b706b9b2 (diff)
Use "./configure --disable-dfxml" to disable DFXML feature
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/photorec.c b/src/photorec.c
index 9ac6d00..6590e5b 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -660,7 +660,9 @@ int file_finish(file_recovery_t *file_recovery, struct ph_param *params,
else
{
list_space_used(file_recovery, params->disk->sector_size);
+#ifdef ENABLE_DFXML
xml_log_file_recovered(file_recovery);
+#endif
update_search_space(file_recovery, list_search_space, current_search_space, offset, params->blocksize);
file_recovered=1; /* note that file was recovered */
}
@@ -752,7 +754,9 @@ alloc_data_t *file_finish2(file_recovery_t *file_recovery, struct ph_param *para
}
else
{
+#ifdef ENABLE_DFXML
xml_log_file_recovered2(list_search_space, file_recovery);
+#endif
datanext=file_truncate(list_search_space, file_recovery, params->disk->sector_size, params->blocksize);
}
free_list_allocation(&file_recovery->location);