summaryrefslogtreecommitdiffstats
path: root/src/tdiskop.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-12-16 08:51:31 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-12-16 08:51:31 +0100
commit488e05fc600040ab36fe46aa4849db1781876e28 (patch)
treec4fae2529496e9e9767e77c8c83b1aca8111ca3b /src/tdiskop.c
parent65390765f54fc16f6108269534c1a1ac7a635b8a (diff)
List and undelete filesystem using alternate superblock if necessary
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 bbdea14..60e1287 100644
--- a/src/tdiskop.c
+++ b/src/tdiskop.c
@@ -47,6 +47,7 @@
#include "geometry.h"
extern const arch_fnct_t arch_i386;
+extern const arch_fnct_t arch_none;
#define INTER_DISK_X 0
#define INTER_DISK_Y 7
@@ -139,7 +140,6 @@ static int menu_disk_ncurses(disk_t *disk_car, const int verbose,int dump_ind, c
int allow_partial_last_cylinder=0;
int ask_part_order=0;
int command;
- unsigned int menu=0;
int real_key;
unsigned int expert=0;
char options[16];
@@ -155,6 +155,7 @@ static int menu_disk_ncurses(disk_t *disk_car, const int verbose,int dump_ind, c
{'E',"Editor","Basic disk editor"},
{0,NULL,NULL}
};
+ unsigned int menu=(disk_car->arch == &arch_none ? 1 : 0);
strcpy(options, "AGOPTQ");
if(disk_car->arch->write_MBR_code!=NULL)
strcat(options,"C");