summaryrefslogtreecommitdiffstats
path: root/src/tntfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-14 22:13:47 +0100
commit1650fe5b8b6cea638c280df13605aea816718a00 (patch)
treefed11bd9361236aba47157d859607c109db05814 /src/tntfs.c
parent56e1c29b2c0614b0b3230946d72e1eaf37618bcc (diff)
Split ncurses text interface from functions
Diffstat (limited to 'src/tntfs.c')
-rw-r--r--src/tntfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tntfs.c b/src/tntfs.c
index 88095a0..34ecafa 100644
--- a/src/tntfs.c
+++ b/src/tntfs.c
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
@@ -38,6 +39,7 @@
#include "ntfs.h"
#include "io_redir.h"
#include "log.h"
+#include "log_part.h"
#include "tntfs.h"
#ifdef HAVE_NCURSES
@@ -239,6 +241,7 @@ int ntfs_boot_sector(disk_t *disk_car, partition_t *partition, const int verbose
free(buffer_backup_bs);
return 0;
case 'O': /* O : copy original boot sector over backup boot */
+#ifdef HAVE_NCURSES
if(ask_confirmation("Copy original NTFS boot sector over backup boot, confirm ? (Y/N)")!=0)
{
log_info("copy original boot sector over backup boot\n");
@@ -249,8 +252,10 @@ int ntfs_boot_sector(disk_t *disk_car, partition_t *partition, const int verbose
disk_car->sync(disk_car);
rescan=1;
}
+#endif
break;
case 'B': /* B : copy backup boot sector over boot sector */
+#ifdef HAVE_NCURSES
if(ask_confirmation("Copy backup NTFS boot sector over boot sector, confirm ? (Y/N)")!=0)
{
log_info("copy backup boot sector over boot sector\n");
@@ -261,6 +266,7 @@ int ntfs_boot_sector(disk_t *disk_car, partition_t *partition, const int verbose
disk_car->sync(disk_car);
rescan=1;
}
+#endif
break;
case 'L':
if(strchr(options,'O')==NULL && strchr(options,'B')!=NULL)