X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fmount_image.c;h=cf5d43538685c2c0a4ff17077591968a1de59a1d;hp=fac3f78a092ca5cf662620b180e2b6af53dc0530;hb=6c22a824ca41822f106c1d5764526ff1dfd5e87b;hpb=926150f973e3b7543ab49312e7a106b86755f776 diff --git a/src/mount_image.c b/src/mount_image.c index fac3f78a..cf5d4353 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -2615,7 +2615,7 @@ wimlib_mount_image(WIMStruct *wim, int image, const char *dir, #endif /* Assign inode numbers. Also, if a read-write mount was requested, - * mark the dentry tree as modified, and add each streams referenced by + * mark the dentry tree as modified, and add each stream referenced by * files in the image to a list and preemptively double the number of * references to each. The latter is done to allow implementing the * WIMLIB_UNMOUNT_FLAG_NEW_IMAGE semantics. */ @@ -2629,10 +2629,8 @@ wimlib_mount_image(WIMStruct *wim, int image, const char *dir, struct wim_lookup_table_entry *lte; lte = inode_stream_lte(inode, i, wim->lookup_table); - if (lte) { - lte->orig_stream_list = (struct list_head){NULL, NULL}; + if (lte) lte->out_refcnt = 0; - } } } image_for_each_inode(inode, imd) {