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

Rui Paulo rpaulo at freebsd.org
Mon Jan 4 04:10:50 UTC 2010


On 2 Jan 2010, at 01:02, Marcel Moolenaar wrote:

> 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

Thanks!

> 
> 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);
> 		}
> 	}

--
Rui Paulo



More information about the svn-src-all mailing list