Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 00:05:37 GMT
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 111857 for review
Message-ID:  <200612180005.kBI05b1W064905@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=111857

Change 111857 by mjacob@mjexp on 2006/12/18 00:05:00

	Correct a misreading of the uuid_to_string man page so
	we actually encode the uuid as a string correctly.

Affected files ...

.. //depot/projects/mjexp/sbin/geom/class/multipath/geom_multipath.c#3 edit

Differences ...

==== //depot/projects/mjexp/sbin/geom/class/multipath/geom_multipath.c#3 (text+ko) ====

@@ -150,12 +150,13 @@
 		gctl_error(req, "cannot create a UUID.");
 		return;
 	}
-	ptr = md.md_uuid;
 	uuid_to_string(&uuid, &ptr, &status);
 	if (status != uuid_s_ok) {
 		gctl_error(req, "cannot stringify a UUID.");
 		return;
 	}
+	strlcpy(md.md_uuid, ptr, sizeof (md.md_uuid));
+	free(ptr);
 
 	/*
 	 * Clear last sector first for each provider to spoil anything extant


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612180005.kBI05b1W064905>