]> err.no Git - util-linux/commitdiff
libblkid: announce Joliet extension
authorMaxim Levitsky <maximlevitsky@gmail.com>
Wed, 23 Sep 2009 07:47:49 +0000 (09:47 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 23 Sep 2009 07:47:49 +0000 (09:47 +0200)
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/iso9660.c

index 976dee12fece326267f5db9d6f445ad514c0fc44..ffab1daffee93274400177f5ca34bfd45048a04c 100644 (file)
@@ -111,6 +111,8 @@ static int probe_iso9660(blkid_probe pr, const struct blkid_idmag *mag)
                    memcmp(iso->escape_sequences, "%/C", 3) == 0 ||
                    memcmp(iso->escape_sequences, "%/E", 3) == 0) {
 
+                       blkid_probe_set_version(pr, "Joliet Extension");
+
                        /* Is the Joliet (UTF16BE) label equal to the label in
                         * the PVD? If yes, use PVD label.  The Jolied version
                         * of the label could be trimed (because UTF16..).
@@ -122,8 +124,6 @@ static int probe_iso9660(blkid_probe pr, const struct blkid_idmag *mag)
                                        iso->volume_id,
                                        sizeof(iso->volume_id),
                                        BLKID_ENC_UTF16BE);
-
-                       blkid_probe_set_version(pr, "Joliet Extension");
                        goto has_label;
                }
                off += ISO_SECTOR_SIZE;