summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-12-23 16:56:58 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-12-23 16:56:58 +0100
commit325573c938600b4f746f2a76ac989b1e2f7db345 (patch)
treeaea56ce8450251fc4bdb7da5958007dccf223eb9 /src/adv.c
parentff9bf8f8e2872c1882f8c5a325be3252c9ba7a22 (diff)
List Undelete in exFAT menu
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/adv.c b/src/adv.c
index 646cd4b..b150b23 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -299,7 +299,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
else if(is_ntfs(partition))
options="tlubcq";
else if(is_exfat(partition))
- options="tlbcq";
+ options="tlubcq";
else if(is_linux(partition))
{
if(partition->upart_type==UP_EXT2)
@@ -355,7 +355,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
(*current_cmd)+=10;
command='s';
}
- else
+ else if(isdigit(*current_cmd[0]))
{
unsigned int order;
order= atoi(*current_cmd);
@@ -448,8 +448,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
}
else if(is_part_ntfs(partition))
{
- ntfs_boot_sector(disk_car, partition, verbose, expert, current_cmd);
-// exFAT_boot_sector(disk_car, partition, verbose, current_cmd);
+ if(partition->upart_type==UP_EXFAT)
+ exFAT_boot_sector(disk_car, partition, verbose, current_cmd);
+ else
+ ntfs_boot_sector(disk_car, partition, verbose, expert, current_cmd);
rewrite=1;
}
else if(partition->upart_type==UP_FAT32)