]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: don't ignore swap UUID if only first byte is zero
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 13 Jun 2011 16:43:11 +0000 (17:43 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jun 2011 15:08:59 +0000 (17:08 +0200)
[kzak@redhat.com: - remove memcmp(zero_uuid, ...), library already
                    checks for empty UUIDs]

Signed-off-by: "Richard W.M. Jones" <rjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/swap.c

index 325a8fafafc05a8e8525bea75c819d89cc39304a..7ac119bedaf18e7bc7112726a4b5975ac20083e6 100644 (file)
@@ -56,7 +56,7 @@ static int swap_set_info(blkid_probe pr, const char *version)
                if (hdr->volume[0] && blkid_probe_set_label(pr, hdr->volume,
                                sizeof(hdr->volume)) < 0)
                        return -1;
-               if (hdr->uuid[0] && blkid_probe_set_uuid(pr, hdr->uuid) < 0)
+               if (blkid_probe_set_uuid(pr, hdr->uuid) < 0)
                        return -1;
        }