summaryrefslogtreecommitdiffstats
path: root/src/tdiskop.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-06-28 08:38:43 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-06-28 08:38:43 +0200
commit42acc4c0e8fc117b1783dbf194139b844543f7fe (patch)
treedc37a1f290a194dda4ca8b6000980b257453d9da /src/tdiskop.c
parent77fee46b90d40e6aa07a6fdc43a6798216c3c5fa (diff)
TestDisk: If user press enter when asked for partition created unde Vista or later, default to yes
Diffstat (limited to 'src/tdiskop.c')
-rw-r--r--src/tdiskop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tdiskop.c b/src/tdiskop.c
index ee9c04f..9bed5ce 100644
--- a/src/tdiskop.c
+++ b/src/tdiskop.c
@@ -181,7 +181,8 @@ static int menu_disk_ncurses(disk_t *disk_car, const int verbose,int dump_ind, c
if(search_vista_part==0)
{
log_info("Ask the user for vista mode\n");
- if(ask_confirmation("Should TestDisk search for partition created under Vista or later ? [Y/N] (answer Yes if unsure)")!=0)
+ if(ask_confirmation_with_default('Y',
+ "Should TestDisk search for partition created under Vista or later ? [Y/N] (answer Yes if unsure)")!=0)
search_vista_part=1;
}
log_info("search_vista_part: %d\n", search_vista_part);