summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-11-07 16:42:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-11-07 16:42:29 +0100
commit6d955e1fa5b73b20e780780e5a2e06645197bc1b (patch)
tree71c850f1aded2942c6c80b0ab757d9c74a9ec47f /src/photorec.c
parent58bafec3cc854e298c10f2514df6a4c9239846b7 (diff)
PhotoRec: add carve free space only from FAT12 possibility
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/photorec.c b/src/photorec.c
index d2d929d..475c7d7 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -386,7 +386,9 @@ void forget(alloc_data_t *list_search_space, alloc_data_t *current_search_space)
unsigned int remove_used_space(disk_t *disk_car, const partition_t *partition, alloc_data_t *list_search_space)
{
- if(partition->upart_type==UP_FAT16 || partition->upart_type==UP_FAT32)
+ if( partition->upart_type==UP_FAT12 ||
+ partition->upart_type==UP_FAT16 ||
+ partition->upart_type==UP_FAT32)
return fat_remove_used_space(disk_car, partition, list_search_space);
#ifdef HAVE_LIBNTFS
else if(partition->upart_type==UP_NTFS)