summaryrefslogtreecommitdiffstats
path: root/src/texfat.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-12-23 17:17:57 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-12-23 17:17:57 +0100
commit62a39b9b4513395d24a25481df46b522a23835b0 (patch)
treefb72df2346d652130e3ef36872966a71cbb72d46 /src/texfat.c
parent8a8d64e8e932bfd7a8939a568adbcfba3763b31c (diff)
Reduce unnecessary interactivity in scripted run
Diffstat (limited to 'src/texfat.c')
-rw-r--r--src/texfat.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/texfat.c b/src/texfat.c
index e566647..5b41bd4 100644
--- a/src/texfat.c
+++ b/src/texfat.c
@@ -61,13 +61,16 @@ static void exFAT_dump_ncurses(disk_t *disk, const partition_t *partition, const
}
#endif
-static void exFAT_dump(disk_t *disk, const partition_t *partition, const unsigned char *buffer_bs, const unsigned char *buffer_backup_bs)
+static void exFAT_dump(disk_t *disk, const partition_t *partition, const unsigned char *buffer_bs, const unsigned char *buffer_backup_bs, char **current_cmd)
{
log_info("Superblock Backup superblock\n");
dump2_log(buffer_bs, buffer_backup_bs, 12 * disk->sector_size);
+ if(*current_cmd==NULL)
+ {
#ifdef HAVE_NCURSES
- exFAT_dump_ncurses(disk, partition, buffer_bs, buffer_backup_bs);
+ exFAT_dump_ncurses(disk, partition, buffer_bs, buffer_backup_bs);
#endif
+ }
}
int exFAT_boot_sector(disk_t *disk, partition_t *partition, const int verbose, char **current_cmd)
@@ -233,7 +236,7 @@ int exFAT_boot_sector(disk_t *disk, partition_t *partition, const int verbose, c
#endif
break;
case 'D':
- exFAT_dump(disk, partition, buffer_bs, buffer_backup_bs);
+ exFAT_dump(disk, partition, buffer_bs, buffer_backup_bs, current_cmd);
break;
}
}