]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: atari - reject devices with blocksize != 512
authorVaclav Dolezal <vdolezal@redhat.com>
Tue, 30 Jan 2018 12:50:15 +0000 (13:50 +0100)
committerVaclav Dolezal <vdolezal@redhat.com>
Tue, 30 Jan 2018 12:50:15 +0000 (13:50 +0100)
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
libblkid/src/partitions/atari.c

index 432df20254792b96a50fcb1329367a8e47e5fb24..1224a577c30d98afe05baeb949ee0e0316b7f3c9 100644 (file)
@@ -186,6 +186,10 @@ static int probe_atari_pt(blkid_probe pr,
        int rc = 0;
        off_t hdsize;
 
+       /* Atari partition is not defined for other sector sizes */
+       if (blkid_probe_get_sectorsize(pr) != 512)
+               goto nothing;
+
        rs = (struct atari_rootsector *) blkid_probe_get_sector(pr, 0);
        if (!rs) {
                if (errno)