From 198e920aa24743ef6ace4e07cf6237de527f9261 Mon Sep 17 00:00:00 2001 From: oittaa <8972248+oittaa@users.noreply.github.com> Date: Tue, 16 Jul 2024 03:35:58 +0200 Subject: [PATCH] libuuid: set variant in the corrrect byte: __uuid_set_variant_and_version --- libuuid/src/gen_uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuuid/src/gen_uuid.c b/libuuid/src/gen_uuid.c index 1ccd4e15ef3..fca7e96e258 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; } /*