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 dbe889f7c..e884e3dc1 100644 --- a/util-linux/fdisk_gpt.c +++ b/util-linux/fdisk_gpt.c | |||
@@ -161,7 +161,7 @@ check_gpt_label(void) | |||
161 | if (!valid_part_table_flag(MBRbuffer) | 161 | if (!valid_part_table_flag(MBRbuffer) |
162 | || first->sys_ind != LEGACY_GPT_TYPE | 162 | || first->sys_ind != LEGACY_GPT_TYPE |
163 | ) { | 163 | ) { |
164 | current_label_type = 0; | 164 | current_label_type = LABEL_DOS; |
165 | return 0; | 165 | return 0; |
166 | } | 166 | } |
167 | 167 | ||
@@ -171,7 +171,7 @@ check_gpt_label(void) | |||
171 | gpt_hdr = (void *)pe.sectorbuffer; | 171 | gpt_hdr = (void *)pe.sectorbuffer; |
172 | 172 | ||
173 | if (gpt_hdr->magic != SWAP_LE64(GPT_MAGIC)) { | 173 | if (gpt_hdr->magic != SWAP_LE64(GPT_MAGIC)) { |
174 | current_label_type = 0; | 174 | current_label_type = LABEL_DOS; |
175 | return 0; | 175 | return 0; |
176 | } | 176 | } |
177 | 177 | ||
@@ -194,7 +194,7 @@ check_gpt_label(void) | |||
194 | || SWAP_LE32(gpt_hdr->hdr_size) > sector_size | 194 | || SWAP_LE32(gpt_hdr->hdr_size) > sector_size |
195 | ) { | 195 | ) { |
196 | puts("\nwarning: unable to parse GPT disklabel\n"); | 196 | puts("\nwarning: unable to parse GPT disklabel\n"); |
197 | current_label_type = 0; | 197 | current_label_type = LABEL_DOS; |
198 | return 0; | 198 | return 0; |
199 | } | 199 | } |
200 | 200 | ||