X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fdentry.c;h=8670d2745fdd9b240a442d63c770b6ea9054b54f;hp=37405eb027316af95a8661cb6a99e1d57fe5408a;hb=60c3d12c1867fcfa1d96352b1a3882b5eaa92a9b;hpb=f24f8409b041727329e980fdc81e84a7c9b00e5b diff --git a/src/dentry.c b/src/dentry.c index 37405eb0..8670d274 100644 --- a/src/dentry.c +++ b/src/dentry.c @@ -141,7 +141,9 @@ struct wim_dentry_on_disk { * As a further special case, if this field is all zeroes but there is * an alternate data stream entry with no name and a nonzero SHA-1 * message digest field, then that hash must be used instead of this - * one. (wimlib does not use this quirk on WIM images it creates.) + * one. In fact, when named data streams are present, some versions of + * Windows PE contain a bug where they only look in the alternate data + * stream entries for the unnamed data stream, not here. */ u8 unnamed_stream_hash[SHA1_HASH_SIZE]; @@ -1635,7 +1637,7 @@ inode_get_unix_data(const struct wim_inode *inode, if (size != sizeof(struct wimlib_unix_data)) return BAD_UNIX_DATA; - ret = read_full_resource_into_buf(lte, unix_data); + ret = read_full_stream_into_buf(lte, unix_data); if (ret) return ret;