]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: iso9660: fix parsing images which do not have Primary Volume Descriptor...
authorPali Rohár <pali.rohar@gmail.com>
Wed, 9 Dec 2020 00:22:28 +0000 (01:22 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Wed, 9 Dec 2020 00:22:28 +0000 (01:22 +0100)
commit4bfcb1fc4af2345f055876dabc7be778bcbf4b70
tree0243557d8f6f8a1141f5df0e9df3a74aa5f552df
parentdb66eddf7ff24a840d02f00c8499cbea1f68e3bd
libblkid: iso9660: fix parsing images which do not have Primary Volume Descriptor as the first

ECMA 119 (ISO 9660) does not mandate that Primary Volume Descriptor needs
to be the first in Volume Descriptor Set sequence.

Move assignment of labels outside of the for-loop and correctly detects
Primary Volume Descriptor via its type (0x01) at any position in sequence.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libblkid/src/superblocks/iso9660.c