diff options
author | marcel <marcel@FreeBSD.org> | 2010-01-02 01:02:59 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2010-01-02 01:02:59 +0000 |
commit | 5390d15d43d651d63e2a74efdb2c771e7d17e920 (patch) | |
tree | 9118aec5a17059a976c5758babb69b4abfa37bb0 /sys/geom | |
parent | 816aa79e514ef766afbec4de68fbb81654f53b7b (diff) | |
download | FreeBSD-src-5390d15d43d651d63e2a74efdb2c771e7d17e920.zip FreeBSD-src-5390d15d43d651d63e2a74efdb2c771e7d17e920.tar.gz |
Properly return the UUID represented by the alias.
PR: 142174
Submitted by: Przemyslaw Laczynski <torindel@gmail.com>
Pointy hat to: rpaulo
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/part/g_part_gpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c index 5b2f7aa..7489e68 100644 --- a/sys/geom/part/g_part_gpt.c +++ b/sys/geom/part/g_part_gpt.c @@ -375,7 +375,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); } } |