summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-11-20 16:25:07 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-11-20 16:25:07 +0100
commit3072cedc43aca432433b5d48b60397beca6e9deb (patch)
tree227a0c5ebe265e3d828abd29fcd7ae152137a017 /src/adv.c
parent4829758b9fcf8dc42b54cc93edd5ac657a74bd1d (diff)
Add the possibility to list NTFS partition in the Advanced menu
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/adv.c b/src/adv.c
index 4908c94..d5c6aa3 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -204,9 +204,9 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
{'t',"Type","Change type, this setting will not be saved on disk"},
{'b',"Boot","Boot sector recovery"},
{'s',"Superblock",NULL},
- {'c',"Image Creation", "Create an image"},
- {'u',"Undelete", "File undelete"},
{'l',"List", "List and copy files"},
+ {'u',"Undelete", "File undelete"},
+ {'c',"Image Creation", "Create an image"},
// {'a',"Add", "Add temporary partition (Expert only)"},
{'q',"Quit","Return to main menu"},
{0,NULL,NULL}
@@ -266,8 +266,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
const partition_t *partition=current_element->part;
if(menu==0)
menu=1;
- if(is_part_fat(partition) || is_part_ntfs(partition))
+ if(is_part_fat(partition))
options="tubcq";
+ if(is_part_ntfs(partition))
+ options="tlubcq";
else if(is_part_linux(partition))
{
if(partition->upart_type==UP_EXT2)
@@ -281,8 +283,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
options="tscq";
menuAdv[2].desc="Locate HFS/HFS+ backup volume header";
}
- else if(is_fat(partition) || is_ntfs(partition))
+ else if(is_fat(partition))
options="tubcq";
+ else if(is_ntfs(partition))
+ options="tlubcq";
else if(is_linux(partition))
{
if(partition->upart_type==UP_EXT2)