Commit 4f2dcb17 authored by Martin Pool's avatar Martin Pool

If we discover a hardlink with -vv say what it's a link to.

parent 64e74631
......@@ -103,8 +103,13 @@ int check_hard_link(struct file_struct *file)
if (low > 0 &&
S_ISREG(hlink_list[low - 1].mode) &&
file->dev == hlink_list[low - 1].dev &&
file->inode == hlink_list[low - 1].inode)
file->inode == hlink_list[low - 1].inode) {
if (verbose >= 2) {
rprintf(FINFO, "check_hard_link: \"%s\" is a hard link to file %d, \"%s\"\n",
f_name(file), low, f_name(&hlink_list[low]));
}
return 1;
}
#endif
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment