Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
81c3a3a
)
Simplified test for hardlink in make_backup debug message to
author
J.W. Schultz
<jw@samba.org>
Tue, 10 Feb 2004 23:23:09 +0000
(23:23 +0000)
committer
J.W. Schultz
<jw@samba.org>
Tue, 10 Feb 2004 23:23:09 +0000
(23:23 +0000)
avoid core-dump.
backup.c
patch
|
blob
|
blame
|
history
diff --git
a/backup.c
b/backup.c
index
248ae90
..
9765d6f
100644
(file)
--- a/
backup.c
+++ b/
backup.c
@@
-264,11
+264,8
@@
static int keep_backup(char *fname)
kept = 1;
}
#endif
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",
if (!kept && !S_ISREG(file->mode)) {
rprintf(FINFO, "make_bak: skipping non-regular file %s\n",