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:
parent
cab3742f10
commit
ed972f84a3
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user