From: Eric Biggers Date: Mon, 8 Apr 2013 05:11:46 +0000 (-0500) Subject: read_dentry(): Ignore ReparseTag for non-reparse-points X-Git-Tag: v1.3.3~76 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=43dcc8bb71d6c7b6118f81d87e61ff865f7e89a5 read_dentry(): Ignore ReparseTag for non-reparse-points --- diff --git a/src/dentry.c b/src/dentry.c index 7f0c1d06..97ad628f 100644 --- a/src/dentry.c +++ b/src/dentry.c @@ -1443,19 +1443,16 @@ read_dentry(const u8 metadata_resource[], u64 metadata_resource_len, p = get_bytes(p, SHA1_HASH_SIZE, inode->i_hash); - /* - * I don't know what's going on here. It seems like M$ screwed up the + /* I don't know what's going on here. It seems like M$ screwed up the * reparse points, then put the fields in the same place and didn't - * document it. The WIM_HDR_FLAG_RP_FIX flag in the WIM header might - * have something to do with this, but it's not documented. - */ + * document it. */ if (inode->i_attributes & FILE_ATTRIBUTE_REPARSE_POINT) { - /* ??? */ p += 4; p = get_u32(p, &inode->i_reparse_tag); p += 4; } else { - p = get_u32(p, &inode->i_reparse_tag); + p += 4; + /* i_reparse_tag is irrelevant; just leave it at 0. */ p = get_u64(p, &inode->i_ino); }