diff options
author | Vaclav Dolezal | 2018-01-30 13:50:15 +0100 |
---|---|---|
committer | Vaclav Dolezal | 2018-01-30 13:50:15 +0100 |
commit | 046351760f1a3e739ff20eb3615676cfdff5742d (patch) | |
tree | 782c3684c600ecd204f4b6f060ac80ad0317a68e /libblkid | |
parent | libblkid: atari - don't add duplicate entries (diff) | |
download | kernel-qcow2-util-linux-046351760f1a3e739ff20eb3615676cfdff5742d.tar.gz kernel-qcow2-util-linux-046351760f1a3e739ff20eb3615676cfdff5742d.tar.xz kernel-qcow2-util-linux-046351760f1a3e739ff20eb3615676cfdff5742d.zip |
libblkid: atari - reject devices with blocksize != 512
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/partitions/atari.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libblkid/src/partitions/atari.c b/libblkid/src/partitions/atari.c index 432df2025..1224a577c 100644 --- a/libblkid/src/partitions/atari.c +++ b/libblkid/src/partitions/atari.c @@ -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) |