summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-08-02 09:48:52 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2018-08-02 09:48:52 +0200
commitd8eb31055c362dcc1d2ec6a0b0427972508c5a32 (patch)
treef0d5fcf1afb2d85007c6e83b00f0c2d0a937b761
parent227a55f7b545351b5be61f7d7e44e2f64033c70a (diff)
After Quick search and Deeper Search, ask before discarding the results.
-rw-r--r--src/godmode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/godmode.c b/src/godmode.c
index 107d023..0c4f3cd 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -1409,14 +1409,15 @@ int interface_recovery(disk_t *disk_car, const list_part_t * list_part_org, cons
#endif
}
log_flush();
+#ifdef HAVE_NCURSES
do
{
list_part=ask_structure(disk_car,list_part,verbose,current_cmd);
- } while(fast_mode!=0 && list_part!=NULL && is_structure_empty(list_part)
-#ifdef HAVE_NCURSES
- && ask_confirmation("Discard the results, confirm ? (Y/N)")==0
+ } while(list_part!=NULL && is_structure_empty(list_part) &&
+ ask_confirmation("Discard the results, confirm ? (Y/N)")==0);
+#else
+ list_part=ask_structure(disk_car,list_part,verbose,current_cmd);
#endif
- );
if(disk_car->arch->test_structure(list_part)==0)
{
int do_again=0;