From: oittaa <8972248+oittaa@users.noreply.github.com> Date: Tue, 16 Jul 2024 01:35:58 +0000 (+0200) Subject: libuuid: set variant in the corrrect byte: __uuid_set_variant_and_version X-Git-Tag: v2.42-start~263 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=198e920aa24743ef6ace4e07cf6237de527f9261;p=thirdparty%2Futil-linux.git libuuid: set variant in the corrrect byte: __uuid_set_variant_and_version --- diff --git a/libuuid/src/gen_uuid.c b/libuuid/src/gen_uuid.c index 1ccd4e15e..fca7e96e2 100644 --- a/libuuid/src/gen_uuid.c +++ b/libuuid/src/gen_uuid.c @@ -589,7 +589,7 @@ static void __uuid_set_variant_and_version(uuid_t uuid, int version) { uuid[6] = (uuid[6] & UUID_TYPE_MASK) | version << UUID_TYPE_SHIFT; /* only DCE is supported */ - uuid[8] = (uuid[10] & 0x3F) | 0x80; + uuid[8] = (uuid[8] & 0x3F) | 0x80; } /*