summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2014-05-25 15:58:14 -0700
committerWayne Davison <wayned@samba.org>2014-05-25 16:00:13 -0700
commitde8ec0b309705bf9987fd7d67874f7d1a6fa4f3b (patch)
treec4c6cefba6c08242232aebb9b39ecc38a7fad8b8
parent677c6e14cc7d5f41371d5616865a5f0cfc0a273f (diff)
downloadrsync-de8ec0b309705bf9987fd7d67874f7d1a6fa4f3b.tar.gz
rsync-de8ec0b309705bf9987fd7d67874f7d1a6fa4f3b.tar.bz2
rsync-de8ec0b309705bf9987fd7d67874f7d1a6fa4f3b.zip
Exit with a partial-transfer error for a sender-remove failure.
-rw-r--r--sender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sender.c b/sender.c
index d9a9eca8..1277177d 100644
--- a/sender.c
+++ b/sender.c
@@ -147,7 +147,7 @@ void successful_send(int ndx)
|| (NSEC_BUMP(file) && (uint32)st.ST_MTIME_NSEC != F_MOD_NSEC(file))
#endif
) {
- rprintf(FERROR, "ERROR: Skipping sender remove for changed file: %s\n", fname);
+ rprintf(FERROR_XFER, "ERROR: Skipping sender remove for changed file: %s\n", fname);
return;
}
@@ -157,7 +157,7 @@ void successful_send(int ndx)
if (errno == ENOENT)
rprintf(FINFO, "sender file already removed: %s\n", fname);
else
- rsyserr(FERROR, errno, "sender failed to %s %s", failed_op, fname);
+ rsyserr(FERROR_XFER, errno, "sender failed to %s %s", failed_op, fname);
} else {
if (INFO_GTE(REMOVE, 1))
rprintf(FINFO, "sender removed %s\n", fname);