Now that the internal versions of GPT partitions are host-endian,
authorkrw <krw@openbsd.org>
Sat, 7 May 2022 11:45:36 +0000 (11:45 +0000)
committerkrw <krw@openbsd.org>
Sat, 7 May 2022 11:45:36 +0000 (11:45 +0000)
commit8e294713258d93fa19b7f8adcec546e23e1f5402
tree91ea7b076154cf528ad583e278e617b8e2b80354
parent189299b8007649d428f02f514bb6adc2f7c9dad6
Now that the internal versions of GPT partitions are host-endian,
simplify PRT_protected_guid() by comparing GUID's with
uuid_compare() rather than converting them to strings and using
strncmp().

Further clarify logic by doing the EFI Sys dance only if
the GUID being tested is not marked as protected.

No intentional functional change.
sbin/fdisk/part.c