summaryrefslogtreecommitdiffstats
path: root/src/thfs.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/thfs.c
parent9924c4a5972117333055e15b90045af3ab7211ea (diff)
Set alternate superblock information when available
Diffstat (limited to 'src/thfs.c')
-rw-r--r--src/thfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thfs.c b/src/thfs.c
index 99a8618..62ac5ed 100644
--- a/src/thfs.c
+++ b/src/thfs.c
@@ -234,6 +234,8 @@ int HFS_HFSP_boot_sector(disk_t *disk_car, partition_t *partition, const int ver
if(ask_confirmation("Copy backup HFS/HFS+ volume header over main volume header, confirm ? (Y/N)")!=0)
{
log_info("copy backup superblock over main superblock\n");
+ /* Reset information about backup boot sector */
+ partition->sb_offset=0;
if(disk_car->pwrite(disk_car, buffer_backup_bs, HFSP_BOOT_SECTOR_SIZE, partition->part_offset + 0x400) != HFSP_BOOT_SECTOR_SIZE)
{
display_message("Write error: Can't overwrite HFS/HFS+ main volume header\n");