summaryrefslogtreecommitdiffstats
path: root/src/tntfs.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/tntfs.c
parent9924c4a5972117333055e15b90045af3ab7211ea (diff)
Set alternate superblock information when available
Diffstat (limited to 'src/tntfs.c')
-rw-r--r--src/tntfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tntfs.c b/src/tntfs.c
index 5f4baee..6bf89e0 100644
--- a/src/tntfs.c
+++ b/src/tntfs.c
@@ -255,6 +255,8 @@ int ntfs_boot_sector(disk_t *disk_car, partition_t *partition, const int verbose
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");
+ /* Reset information about backup boot sector */
+ partition->sb_offset=0;
if(disk_car->pwrite(disk_car, buffer_backup_bs, NTFS_BOOT_SECTOR_SIZE, partition->part_offset) != NTFS_BOOT_SECTOR_SIZE)
{
display_message("Write error: Can't overwrite NTFS boot sector\n");