summaryrefslogtreecommitdiffstats
path: root/src/fat.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-24 08:53:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-24 08:53:38 +0200
commit7bc36ba905ec4013ec13cf359f1d24df5ad17662 (patch)
treebe062077358da3d3015b9d0e50a890a89728f2c1 /src/fat.c
parent4553df104b3e240e3acfb97c954e615205fcd7c6 (diff)
"FAT found using backup sector!" message should be set by recover_FAT(), not by search_FAT_backup()
Diffstat (limited to 'src/fat.c')
-rw-r--r--src/fat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fat.c b/src/fat.c
index 4f1091e..ca9766c 100644
--- a/src/fat.c
+++ b/src/fat.c
@@ -220,7 +220,10 @@ static int set_FAT_info(disk_t *disk_car, const struct fat_boot_sector *fat_head
}
break;
case UP_FAT32:
- snprintf(partition->info, sizeof(partition->info), "FAT32, blocksize=%u", partition->blocksize);
+ if(partition->sb_offset==0)
+ snprintf(partition->info, sizeof(partition->info), "FAT32, blocksize=%u", partition->blocksize);
+ else
+ snprintf(partition->info, sizeof(partition->info), "FAT32 found using backup sector, blocksize=%u", partition->blocksize);
fat32_set_part_name(disk_car,partition,fat_header);
break;
default: