]> git.ipfire.org Git - thirdparty/util-linux.git/commit
uuidparse: only report type/version for DCE variant
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 17 Apr 2024 07:27:08 +0000 (09:27 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 17 Apr 2024 07:32:12 +0000 (09:32 +0200)
commit72e7b345e216bb1b4ca7294813fa4b5054358242
tree19ca5573cd4c1e8b14aded03afb49d09d1be545a
parentd98b2e161f8b6b59d645631297f81427d85288ac
uuidparse: only report type/version for DCE variant

The type/version is only defined in scope for the DCE variant.

From RFC4122 Section 4.1.1:

"the interpretation of all other bits in the UUID depends on the setting
of the bits in the variant field."

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/uuidparse.c
tests/expected/uuid/uuidparse