summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-12-16 08:50:58 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-12-16 08:50:58 +0100
commit65390765f54fc16f6108269534c1a1ac7a635b8a (patch)
tree2d43f962602847a8004e003bfa4e9a94c198ea79 /src/fat_adv.c
parent9924c4a5972117333055e15b90045af3ab7211ea (diff)
Set alternate superblock information when available
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index b7b2c6c..1636344 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -1029,6 +1029,8 @@ static void menu_write_fat_boot_sector(disk_t *disk_car, partition_t *partition,
{
int err=0;
log_info("Write new boot!\n");
+ /* Reset information about backup boot sector */
+ partition->sb_offset=0;
/* Write boot sector and backup boot sector */
if(upart_type==UP_FAT32)
{