]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Move setting of archive_format[_name] of Rock Ridge extensions to proper place.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 9 Oct 2009 12:10:26 +0000 (08:10 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 9 Oct 2009 12:10:26 +0000 (08:10 -0400)
SVN-Revision: 1493

libarchive/archive_read_support_format_iso9660.c

index 93da99ad727163ffcba5b524c22da3a306bc51e6..231ed5ef421b1633d0d3eda92bbe85b842d12589 100644 (file)
@@ -729,6 +729,12 @@ archive_read_format_iso9660_read_header(struct archive_read *a,
                }
                /* Store the root directory in the pending list. */
                add_entry(iso9660, file);
+               if (iso9660->seenRockridge) {
+                       a->archive.archive_format =
+                           ARCHIVE_FORMAT_ISO9660_ROCKRIDGE;
+                       a->archive.archive_format_name =
+                           "ISO9660 with Rockridge extensions";
+               }
        }
 
        /* Get the next entry that appears after the current offset. */
@@ -879,12 +885,6 @@ archive_read_format_iso9660_read_header(struct archive_read *a,
                                        return (ARCHIVE_FATAL);
                                }
                                add_entry(iso9660, child);
-                               if (iso9660->seenRockridge) {
-                                       a->archive.archive_format =
-                                           ARCHIVE_FORMAT_ISO9660_ROCKRIDGE;
-                                       a->archive.archive_format_name =
-                                           "ISO9660 with Rockridge extensions";
-                               }
                        }
                }
        }