]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: sun: use generic checksum handling
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 26 Dec 2022 23:07:58 +0000 (23:07 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 26 Dec 2022 23:57:48 +0000 (23:57 +0000)
libblkid/src/partitions/sun.c

index 058a66372754e61b074f3148ebfedf66e8471138..ce24364f5144d5828106599ada29128369599239 100644 (file)
@@ -33,7 +33,7 @@ static int probe_sun_pt(blkid_probe pr,
                goto nothing;
        }
 
-       if (sun_pt_checksum(l)) {
+       if (!blkid_probe_verify_csum(pr, sun_pt_checksum(l), 0)) {
                DBG(LOWPROBE, ul_debug(
                        "detected corrupted sun disk label -- ignore"));
                goto nothing;