summaryrefslogtreecommitdiffstats
path: root/src/toptions.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-10-05 15:28:12 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-10-05 15:28:12 +0200
commit32ac729a5df7a69ad360ab54f6adacfe6b420510 (patch)
treeb212a16e779fe24c6fc6e603bcff09124ff92397 /src/toptions.c
parent63673d97ecd9de19b5e13dea61d2900119373b81 (diff)
TestDisk: define nodump, align, noalign, expert, noexpert options in scripted run
Diffstat (limited to 'src/toptions.c')
-rw-r--r--src/toptions.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/toptions.c b/src/toptions.c
index 693860f..70b5a67 100644
--- a/src/toptions.c
+++ b/src/toptions.c
@@ -93,16 +93,31 @@ void interface_options(int *dump_ind, int *align, unsigned int *expert, char**cu
(*current_cmd)+=4;
*dump_ind=1;
}
+ else if(strncmp(*current_cmd,"nodump",6)==0)
+ {
+ (*current_cmd)+=6;
+ *dump_ind=0;
+ }
else if(strncmp(*current_cmd,"align",5)==0)
{
(*current_cmd)+=5;
*align=1;
}
+ else if(strncmp(*current_cmd,"noalign",7)==0)
+ {
+ (*current_cmd)+=7;
+ *align=0;
+ }
else if(strncmp(*current_cmd,"expert",6)==0)
{
(*current_cmd)+=6;
*expert=1;
}
+ else if(strncmp(*current_cmd,"noexpert",8)==0)
+ {
+ (*current_cmd)+=6;
+ *expert=0;
+ }
else
keep_asking=0;
} while(keep_asking>0);