PERFORCE change 111857 for review
Matt Jacob
mjacob at FreeBSD.org
Sun Dec 17 16:05:38 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=111857
Change 111857 by mjacob at 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
More information about the p4-projects
mailing list