Virtual ISO: Don't declare Rock Ridge extension on Joliet tree

This commit is contained in:
RichardG867
2022-03-31 13:53:52 -03:00
parent 4e910f1709
commit f8173f75ec

View File

@@ -1102,6 +1102,7 @@ next_dir:
}
/* Write directory records for each type. */
int dir_type = VISO_DIR_CURRENT_ROOT;
for (int i = 0; i < 2; i++) {
cdrom_image_viso_log("VISO: Generating directory record set #%d:\n", i);
@@ -1134,7 +1135,6 @@ next_dir:
/* Go through entries in this directory. */
viso_entry_t *entry = dir->first_child;
int dir_type = (dir == viso->root_dir) ? VISO_DIR_CURRENT_ROOT : VISO_DIR_CURRENT;
while (entry) {
/* Skip the El Torito boot code entry if present. */
if (entry == viso->eltorito_entry)
@@ -1193,6 +1193,7 @@ next_entry:
viso_pwrite(data, dir->first_child->next->dr_offsets[i] + 10, 8, 1, viso->tf.file);
/* Move on to the next directory. */
dir_type = VISO_DIR_CURRENT;
dir = dir->next_dir;
}