From 3902dcfb862ce32e3bd0966f23224f7a24dd2cb6 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 8 Dec 2008 16:28:40 +0100 Subject: [PATCH] blkid: hfs - do not set UUID for emtpy finder info Signed-off-by: Kay Sievers --- libs/blkid/src/probers/hfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/blkid/src/probers/hfs.c b/libs/blkid/src/probers/hfs.c index aef99524..dc30e837 100644 --- a/libs/blkid/src/probers/hfs.c +++ b/libs/blkid/src/probers/hfs.c @@ -135,6 +135,8 @@ static int hfs_set_uuid(blkid_probe pr, unsigned char const *hfs_info) unsigned char uuid[16]; struct MD5Context md5c; + if (memcmp(hfs_info, "\0\0\0\0\0\0\0\0", 8) == 0) + return -1; MD5Init(&md5c); MD5Update(&md5c, hash_init, 16); MD5Update(&md5c, hfs_info, 8); -- 2.39.5