diff options
Diffstat (limited to 'util-linux/fdisk_gpt.c')
-rw-r--r-- | util-linux/fdisk_gpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/fdisk_gpt.c b/util-linux/fdisk_gpt.c index dbe889f..e884e3d 100644 --- a/util-linux/fdisk_gpt.c +++ b/util-linux/fdisk_gpt.c @@ -161,7 +161,7 @@ check_gpt_label(void) if (!valid_part_table_flag(MBRbuffer) || first->sys_ind != LEGACY_GPT_TYPE ) { - current_label_type = 0; + current_label_type = LABEL_DOS; return 0; } @@ -171,7 +171,7 @@ check_gpt_label(void) gpt_hdr = (void *)pe.sectorbuffer; if (gpt_hdr->magic != SWAP_LE64(GPT_MAGIC)) { - current_label_type = 0; + current_label_type = LABEL_DOS; return 0; } @@ -194,7 +194,7 @@ check_gpt_label(void) || SWAP_LE32(gpt_hdr->hdr_size) > sector_size ) { puts("\nwarning: unable to parse GPT disklabel\n"); - current_label_type = 0; + current_label_type = LABEL_DOS; return 0; } |