MFC r201374: g_part_gpt: Properly return the UUID represented by the alias
PR: kern/142174 Approved by: re (kib) Approved by: marcel
This commit is contained in:
parent
e39a411806
commit
84ba62ee66
@ -354,7 +354,7 @@ gpt_parse_type(const char *type, struct uuid *uuid)
|
||||
for (uap = &gpt_uuid_alias_match[0]; uap->uuid; uap++) {
|
||||
alias = g_part_alias_name(uap->alias);
|
||||
if (!strcasecmp(type, alias)) {
|
||||
uuid = uap->uuid;
|
||||
*uuid = *uap->uuid;
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user