summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-10-07 20:54:35 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-10-07 20:54:35 +0200
commit82c6f55ebff8105b6fbacb832ed37b927afe14d7 (patch)
treecce0a3de562ba8c3f2474250b26a4883cce24511 /src/adv.c
parentc35c0d5216410910fffa5364059e31875d8a4500 (diff)
TestDisk: distinguish between "advanced,list" and "advanced,undelete"
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/adv.c b/src/adv.c
index 65c6671..7dc4533 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -337,6 +337,11 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
(*current_cmd)+=4;
command='l';
}
+ else if(strncmp(*current_cmd,"undelete",8)==0)
+ {
+ (*current_cmd)+=8;
+ command='u';
+ }
else if(strncmp(*current_cmd,"superblock",10)==0)
{
(*current_cmd)+=10;
@@ -482,8 +487,6 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
break;
case 'u':
case 'U':
- case 'l':
- case 'L':
{
partition_t *partition=current_element->part;
if(partition->upart_type==UP_NTFS || is_part_ntfs(partition))
@@ -492,6 +495,13 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
dir_partition(disk_car, partition, 0, current_cmd);
}
break;
+ case 'l':
+ case 'L':
+ {
+ partition_t *partition=current_element->part;
+ dir_partition(disk_car, partition, 0, current_cmd);
+ }
+ break;
case 's':
case 'S':
{