From: Kay Sievers Date: Mon, 8 Dec 2008 15:28:40 +0000 (+0100) Subject: blkid: hfs - do not set UUID for emtpy finder info X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3902dcfb862ce32e3bd0966f23224f7a24dd2cb6;p=util-linux blkid: hfs - do not set UUID for emtpy finder info Signed-off-by: Kay Sievers --- 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);