From ed8c19061f11e8448abd73289e996a0067d9fb71 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 21 May 2013 00:26:08 -0500 Subject: [PATCH] ntfs-3g_capture.c: Allow multiple empty unnamed streams --- src/ntfs-3g_capture.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/ntfs-3g_capture.c b/src/ntfs-3g_capture.c index 757c9d3e..978c2b49 100644 --- a/src/ntfs-3g_capture.c +++ b/src/ntfs-3g_capture.c @@ -267,13 +267,18 @@ capture_ntfs_streams(struct wim_inode *inode, /* Unnamed data stream. Put the reference to it in the * dentry's inode. */ if (inode->i_lte) { - ERROR("Found two un-named data streams for `%s'", - path); - ret = WIMLIB_ERR_NTFS_3G; - goto out_free_lte; + if (lte) { + ERROR("Found two un-named data streams for \"%s\" " + "(sizes = %"PRIu64", %"PRIu64")", + path, wim_resource_size(inode->i_lte), + wim_resource_size(lte)); + ret = WIMLIB_ERR_NTFS_3G; + goto out_free_lte; + } + } else { + stream_id = 0; + inode->i_lte = lte; } - stream_id = 0; - inode->i_lte = lte; } else { /* Named data stream. Put the reference to it in the * alternate data stream entries */ -- 2.43.0