Prevented that non-MD5 nodes from old image get an MD5 in appended session.

This commit is contained in:
2009-08-11 21:08:15 +02:00
parent fd124c82d2
commit ecf2ca044e
5 changed files with 41 additions and 18 deletions

View File

@ -427,7 +427,7 @@ int checksum_copy_old_nodes(Ecma119Image *target, IsoNode *node, int flag)
if (node->type == LIBISO_FILE) {
file = (IsoFile *) node;
if (file->from_old_session) {
if (file->from_old_session && target->appendable) {
ret = iso_node_get_xinfo(node, checksum_xinfo_func, &xipt);
if (ret <= 0)
return ret;