Commit 62125b10 authored by J.W. Schultz's avatar J.W. Schultz

Simplified test for hardlink in make_backup debug message to

avoid core-dump.
parent 81c3a3a8
......@@ -264,11 +264,8 @@ static int keep_backup(char *fname)
kept = 1;
}
#endif
if (!kept && preserve_hard_links && file->link_u.links
&& hlink_list[file->F_HLINDEX] != file) {
if (verbose > 1)
rprintf(FINFO, "%s is a hard link\n", f_name(file));
}
if (!kept && preserve_hard_links && file->link_u.links && verbose > 1)
rprintf(FINFO, "%s was a hard link\n", f_name(file));
if (!kept && !S_ISREG(file->mode)) {
rprintf(FINFO, "make_bak: skipping non-regular file %s\n",
......
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