Browse Source

Fixed broken SUSP handling

master
Mario Danic 15 years ago
parent
commit
b7573134cb
  1. 4
      libisofs/ecma119_tree.c
  2. 6
      libisofs/susp.c

4
libisofs/ecma119_tree.c

@ -251,10 +251,6 @@ create_symlink(struct ecma119_write_target *t,
assert(t && iso && parent && parent->type == ECMA119_DIR);
ret = create_ecma119_node(t, parent, (struct iso_tree_node*) iso);
ret->iso_name = iso->node.name ? ((t->iso_level == 1) ?
iso_1_fileid(iso->node.name, t->input_charset)
: iso_2_fileid(iso->node.name, t->input_charset))
: NULL;
ret->type = ECMA119_SYMLINK;
ret->info.dest = iso->dest; /* TODO strdup? */
ret->attrib.st_nlink = 1;

6
libisofs/susp.c

@ -205,10 +205,8 @@ susp_finalize(struct ecma119_write_target *t, struct ecma119_tree_node *dir)
assert(dir->type = ECMA119_DIR);
if (dir->info.dir.depth != 1) {
susp_fin_CE(t, dir);
}
susp_fin_CE(t, dir);
for (i = 0; i < dir->info.dir.nchildren; i++) {
if (dir->info.dir.children[i]->type == ECMA119_DIR)
susp_finalize(t, dir->info.dir.children[i]);

Loading…
Cancel
Save