]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
wimlib_mount_image(): Correctly handle unnamed stream in ADS entries
[wimlib] / src / mount_image.c
index 37bc68ce0f56efa74d3e29601e516412a19179c6..ce4a58432d51f081256a26c550c1fb5d369895fa 100644 (file)
@@ -2242,7 +2242,7 @@ wimfs_unlink(const char *path)
        if (ret != 0)
                return ret;
 
-       if (stream_idx == 0)
+       if (inode_stream_name_nbytes(dentry->d_inode, stream_idx) == 0)
                remove_dentry(dentry, ctx->wim->lookup_table);
        else
                inode_remove_ads(dentry->d_inode, stream_idx - 1,