diff options
author | J.W. Schultz <jw@samba.org> | 2004-02-10 23:23:09 +0000 |
---|---|---|
committer | J.W. Schultz <jw@samba.org> | 2004-02-10 23:23:09 +0000 |
commit | 62125b10c92883c168d6efc1be6b3331035f8bfa (patch) | |
tree | d261ac83c079e2ecf6c6ae766a6e1d373d0157a3 | |
parent | 81c3a3a86e47acad6b277531cb6153a95488665d (diff) | |
download | android_external_rsync-62125b10c92883c168d6efc1be6b3331035f8bfa.tar.gz android_external_rsync-62125b10c92883c168d6efc1be6b3331035f8bfa.tar.bz2 android_external_rsync-62125b10c92883c168d6efc1be6b3331035f8bfa.zip |
Simplified test for hardlink in make_backup debug message to
avoid core-dump.
-rw-r--r-- | backup.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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", |