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:
Andriy Gapon 2010-05-31 20:17:37 +00:00
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);
}
}