summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-04-25 09:50:49 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-04-25 09:50:49 +0200
commit89c0713c791b503eda39283eb838b2646f8570c7 (patch)
treee98c1217c45af318e07da046194ee402f4d6403d /src/adv.c
parentf92fc3aee0da23384af76ac4022bbd50b38c5e64 (diff)
When selecting undelete for an exFAT partition, avoid to redirect to NTFS undelete
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/adv.c b/src/adv.c
index 45a22ad..646cd4b 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -516,7 +516,8 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
partition->sb_size,
partition->part_offset+partition->sb_offset,
NULL);
- if(partition->upart_type==UP_NTFS || is_part_ntfs(partition))
+ if(partition->upart_type==UP_NTFS ||
+ (is_part_ntfs(partition) && partition->upart_type!=UP_EXFAT))
ntfs_undelete_part(disk_car, partition, verbose, current_cmd);
else
dir_partition(disk_car, partition, 0, current_cmd);
@@ -524,7 +525,8 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
}
else
{
- if(partition->upart_type==UP_NTFS || is_part_ntfs(partition))
+ if(partition->upart_type==UP_NTFS ||
+ (is_part_ntfs(partition) && partition->upart_type!=UP_EXFAT))
ntfs_undelete_part(disk_car, partition, verbose, current_cmd);
else
dir_partition(disk_car, partition, 0, current_cmd);