assert(other != other->next);
assert(other->st.st_size == master->st.st_size);
+ if (!other->links)
+ continue;
+
/* check file attributes, etc. */
- if (!other->links || !file_may_link_to(master, other))
+ if (!file_may_link_to(master, other)) {
+ jlog(JLOG_VERBOSE2,
+ _("Skipped (attributes mismatch) %s"), other->links->path);
continue;
+ }
/* initialize content comparison */
if (!ul_fileeq_data_associated(&master->data))
stats.comparisons++;
- if (!eq)
+ if (!eq) {
+ jlog(JLOG_VERBOSE2,
+ _("Skipped (content mismatch) %s"), other->links->path);
continue;
+ }
/* link files */
if (!file_link(master, other) && errno == EMLINK) {