summaryrefslogtreecommitdiffstats
path: root/src/intrface.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-04-21 14:22:37 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-04-21 14:22:37 +0200
commitf0fef8377cae1ebd1b97fa1efce482983905ab94 (patch)
tree31ab605ae23ef26b8da237e3908f2a033298b88f /src/intrface.c
parent8140cb4898c9d52bd4e90b363d39c5db70fc7910 (diff)
Add the possibility to save the results from Quick or Deeper Search by pressing
the 'b' key
Diffstat (limited to 'src/intrface.c')
-rw-r--r--src/intrface.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intrface.c b/src/intrface.c
index ff273dc..74d5a92 100644
--- a/src/intrface.c
+++ b/src/intrface.c
@@ -377,6 +377,14 @@ static list_part_t *ask_structure_ncurses(disk_t *disk_car,list_part_t *list_par
rewrite=1;
}
break;
+ case 'b':
+ case 'B':
+ if(partition_save(disk_car,list_part,verbose)<0)
+ display_message("Can't create backup.log.\n");
+ else
+ display_message("Results saved in backup.log.\n");
+ rewrite=1;
+ break;
case 'l':
case 'L':
if(disk_car->arch != &arch_none)