+/*
+ * hardlink.c
+ *
+ * Code to deal with hard links in WIMs. Essentially, the WIM dentries are put
+ * into a hash table indexed by the hard link group ID field, then for each hard
+ * link group, a linked list is made to connect the dentries.
+ */
+
/*
* Copyright (C) 2012 Eric Biggers
*
if (strcmp(d1->ads_entries[i].stream_name_utf8,
d2->ads_entries[i].stream_name_utf8) != 0)
return false;
- if (memcmp(d1->ads_entries[i].hash,
- d2->ads_entries[i].hash,
- WIM_HASH_SIZE) != 0)
+ if (!hashes_equal(d1->ads_entries[i].hash,
+ d2->ads_entries[i].hash))
return false;
}
return true;
mismatch_type = "security ID";
goto mismatch;
}
- if (memcmp(owner->hash, user->hash, WIM_HASH_SIZE) != 0) {
+ if (!hashes_equal(owner->hash, user->hash)) {
mismatch_type = "main file resource";
goto mismatch;
}