]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: sgi: use generic checksum handling
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 26 Dec 2022 23:07:54 +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/sgi.c

index 99c0bf1c73ea70035de5648eb259c7c51ecc7403..d4f81bbddf787fd0a75a3d349f5c50c4801a8d7c 100644 (file)
@@ -31,7 +31,7 @@ static int probe_sgi_pt(blkid_probe pr,
                goto nothing;
        }
 
-       if (sgi_pt_checksum(l)) {
+       if (!blkid_probe_verify_csum(pr, sgi_pt_checksum(l), 0)) {
                DBG(LOWPROBE, ul_debug(
                        "detected corrupted sgi disk label -- ignore"));
                goto nothing;