Correct an off-by-1 for GPART. The literal partition type (i.e.

the actual UUID) is prefixed by '!' to distinguish them from
well-known aliases.

MFC after: 3 days
This commit is contained in:
marcel 2008-04-23 03:00:26 +00:00
parent cab3742f10
commit ed972f84a3

View File

@ -217,8 +217,14 @@ Int_Open_Disk(const char *name, char *conftxt)
uuid = _swap;
else if (!strcmp(r, "freebsd-ufs"))
uuid = _ufs;
else
uuid_from_string(r, &uuid, &status);
else {
if (!strcmp(type, "PART"))
uuid_from_string(r + 1, &uuid,
&status);
else
uuid_from_string(r, &uuid,
&status);
}
} else
status = uuid_s_invalid_string_uuid;
if (!strcmp(q, "o"))