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
0b5e889911
commit
727b08eb66
@ -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…
x
Reference in New Issue
Block a user