From acb4bd143c6374319e4f0fd91c23cd5bd93a3616 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 27 Oct 2022 17:37:58 +0200 Subject: [PATCH] Bug fix: Freshly cloned data files from imported image were not marked as imported --- libisofs/tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libisofs/tree.c b/libisofs/tree.c index 71a184c..43e3f2d 100644 --- a/libisofs/tree.c +++ b/libisofs/tree.c @@ -1453,6 +1453,8 @@ int iso_tree_clone_file(IsoFile *old_file, if (ret < 0) goto ex; new_stream = NULL; /* now owned by new_file */ + new_file->from_old_session = old_file->from_old_session; + new_file->explicit_weight = old_file->explicit_weight; new_file->sort_weight = old_file->sort_weight; *new_node = (IsoNode *) new_file; ret = ISO_SUCCESS;