summaryrefslogtreecommitdiffstats
path: root/src/godmode.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-14 07:56:21 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-14 07:56:21 +0200
commit6f3aed396c8a14190a4b52a340b9217e1b6598fa (patch)
tree2974117516efaf0baa53550a381df2265098bffc /src/godmode.c
parent16a9207d667f7ce45e3c960fdae8433e42410b2c (diff)
add missing return to new line at the end of LBA48 support message
Search for backup partition when EFI GPT is selected
Diffstat (limited to 'src/godmode.c')
-rw-r--r--src/godmode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/godmode.c b/src/godmode.c
index 43688c7..c6e4fe1 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -309,7 +309,7 @@ static int interface_part_bad_log(disk_t *disk_car, list_part_t *list_part)
#if defined(__CYGWIN__) || defined(__MINGW32__)
if(disk_car->disk_size<=((uint64_t)1<<(28-1)) && disk_size>=((uint64_t)1<<(28-1)))
{
- log_warning("Hint: update Windows to support LBA48 (minimum: W2K SP4 or XP SP1)");
+ log_warning("Hint: update Windows to support LBA48 (minimum: W2K SP4 or XP SP1)\n");
}
#endif
{
@@ -686,6 +686,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
((start.sector==7 && (start.head<=2 || fast_mode>1)) ||
search_location%(2048*512)==(7-1)*512)) ||
(disk_car->arch!=&arch_i386 && (search_location%location_boundary==(7-1)*512)) ||
+ (disk_car->arch==&arch_gpt&& (search_location%(2048*512)==(7-1)*512)) ||
(disk_car->arch==&arch_none && search_location==(7-1)*512))
res=search_FAT_backup(buffer_disk,disk_car,partition,verbose,dump_ind);
test_nbr++;
@@ -695,6 +696,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
if((disk_car->arch==&arch_i386 &&
((start.sector==13 && (start.head<=2 || fast_mode>1)) ||
search_location%(2048*512)==(13-1)*disk_car->sector_size)) ||
+ (disk_car->arch==&arch_gpt&& (search_location%(2048*512)==(13-1)*512)) ||
(disk_car->arch!=&arch_i386 && (search_location%location_boundary==(13-1)*disk_car->sector_size)))
res=search_EXFAT_backup(buffer_disk, disk_car, partition);
test_nbr++;
@@ -705,6 +707,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
((start.sector==disk_car->geom.sectors_per_head &&
(start.head==disk_car->geom.heads_per_cylinder-1 || fast_mode>1)) ||
search_location%(2048*512)==(2048-1)*512)) ||
+ (disk_car->arch==&arch_gpt&& (search_location%(2048*512)==(2048-1)*512)) ||
(disk_car->arch!=&arch_i386 && search_location%location_boundary==(location_boundary-512) &&
search_location>0))
res=search_NTFS_backup(buffer_disk,disk_car,partition,verbose,dump_ind);