]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: Don't keep reading same sector of ISO
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 11 Feb 2013 21:22:11 +0000 (23:22 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Feb 2013 09:54:27 +0000 (10:54 +0100)
We were reading the same sector over and over again when parsing ISO9660.
This patches fixes it.

libblkid/src/superblocks/iso9660.c

index f7d2b760ab6952d3cb1ae60b1dca8f27665f81d4..33a8597ed6f1fa92ff92c51215ef7c11a7f3f77f 100644 (file)
@@ -167,8 +167,10 @@ static int probe_iso9660(blkid_probe pr, const struct blkid_idmag *mag)
 
                if (iso == NULL || iso->vd_type == ISO_VD_END)
                        break;
-               if (iso->vd_type != ISO_VD_SUPPLEMENTARY)
+               if (iso->vd_type != ISO_VD_SUPPLEMENTARY) {
+                       off += ISO_SECTOR_SIZE;
                        continue;
+      }
 
                if (memcmp(iso->escape_sequences, "%/@", 3) == 0 ||
                    memcmp(iso->escape_sequences, "%/C", 3) == 0 ||