summaryrefslogtreecommitdiffstats
path: root/src/file_found.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-05-27 09:25:32 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-05-27 09:25:32 +0200
commit40fa2ab574b2da8ff7ab1a0e13c36c8a138eec6c (patch)
tree11d889c49764614160f64e07380a0aaae9efe3f4 /src/file_found.c
parent7b41ff4c5709cb486d2e5dfbd64e364785077d67 (diff)
PhotoRec: when a ne file is found, mark the area as data
Diffstat (limited to 'src/file_found.c')
-rw-r--r--src/file_found.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file_found.c b/src/file_found.c
index bd32f9b..2478baa 100644
--- a/src/file_found.c
+++ b/src/file_found.c
@@ -50,6 +50,7 @@ alloc_data_t *file_found(alloc_data_t *current_search_space, const uint64_t offs
if(current_search_space->start == offset)
{
current_search_space->file_stat=file_stat;
+ current_search_space->data=1;
return current_search_space;
}
if(current_search_space->start < offset && offset <= current_search_space->end)
@@ -60,6 +61,7 @@ alloc_data_t *file_found(alloc_data_t *current_search_space, const uint64_t offs
current_search_space->end=offset-1;
next_search_space->start=offset;
next_search_space->file_stat=file_stat;
+ next_search_space->data=1;
td_list_add(&next_search_space->list, &current_search_space->list);
return next_search_space;
}