svn commit: r201374 - head/sys/geom/part

Marcel Moolenaar marcel at FreeBSD.org
Sat Jan 2 01:02:59 UTC 2010


Author: marcel
Date: Sat Jan  2 01:02:59 2010
New Revision: 201374
URL: http://svn.freebsd.org/changeset/base/201374

Log:
  Properly return the UUID represented by the alias.
  
  PR:		142174
  Submitted by:	Przemyslaw Laczynski <torindel at gmail.com>
  Pointy hat to:	rpaulo

Modified:
  head/sys/geom/part/g_part_gpt.c

Modified: head/sys/geom/part/g_part_gpt.c
==============================================================================
--- head/sys/geom/part/g_part_gpt.c	Sat Jan  2 00:37:00 2010	(r201373)
+++ head/sys/geom/part/g_part_gpt.c	Sat Jan  2 01:02:59 2010	(r201374)
@@ -375,7 +375,7 @@ gpt_parse_type(const char *type, struct 
 	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);
 		}
 	}


More information about the svn-src-all mailing list