libblkid-tiny: avoid setting phantom UUIDs
authorJo-Philipp Wich <jo@mein.io>
Mon, 17 Oct 2016 09:28:31 +0000 (11:28 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 17 Oct 2016 09:45:34 +0000 (11:45 +0200)
commitbd0221b884283361625e485840c99739c85d7b76
tree03a21a35143954ba27156c42011d69f59e679742
parentc8c2aa3df24542a729129753d4b58e9e5027a288
libblkid-tiny: avoid setting phantom UUIDs

When blkid_probe_set_uuid_as() is invoked with a non-NULL name parameter
then the name parameter denotes the kind of UUID (like "EXT_JOURNAL") not
the name of the file system.

Only copy the UUID value to the probe uuid member if the given name is
either NULL or "UUID".

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libblkid-tiny/libblkid-tiny.c