From c6eff1f0a0721331237030bdce4490bfafd436f7 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 21 May 2013 15:03:27 -0500 Subject: [PATCH] verify_inode(): Fix verifying already-resolved inodes --- src/verify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/verify.c b/src/verify.c index a4be1f8b..3e709767 100644 --- a/src/verify.c +++ b/src/verify.c @@ -66,11 +66,11 @@ verify_inode(struct wim_inode *inode, const WIMStruct *w) * empty stream. * * This check is skipped on split WIMs. */ - if (w->hdr.total_parts == 1) { + if (w->hdr.total_parts == 1 && !inode->i_resolved) { for (unsigned i = 0; i <= inode->i_num_ads; i++) { struct wim_lookup_table_entry *lte; const u8 *hash; - hash = inode_stream_hash_unresolved(inode, i); + hash = inode_stream_hash(inode, i); lte = __lookup_resource(table, hash); if (!lte && !is_zero_hash(hash)) { ERROR("Could not find lookup table entry for stream " @@ -87,7 +87,7 @@ verify_inode(struct wim_inode *inode, const WIMStruct *w) unsigned num_unnamed_streams = 0; for (unsigned i = 0; i <= inode->i_num_ads; i++) { const u8 *hash; - hash = inode_stream_hash_unresolved(inode, i); + hash = inode_stream_hash(inode, i); if (inode_stream_name_nbytes(inode, i) == 0 && !is_zero_hash(hash)) num_unnamed_streams++; } -- 2.43.0