summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-11-22 09:56:21 -0800
committerWayne Davison <wayned@samba.org>2007-11-22 10:05:36 -0800
commit3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47 (patch)
tree2ec9e186c513214ff35ea1060b773e1d63106858 /cleanup.c
parenta6c6f8e650f9790c7827ad1ff321fe21daf522cf (diff)
downloadrsync-3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47.tar.gz
New logging categories added to allow differentiation between
transfer errors, normal errors, and warnings. New messages are translated into old FERROR/FINFO categories for older protocols.
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cleanup.c b/cleanup.c
index 2ded3020..63fd64ef 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -26,7 +26,7 @@ extern int am_server;
extern int am_daemon;
extern int io_error;
extern int keep_partial;
-extern int log_got_error;
+extern int got_xfer_error;
extern char *partial_dir;
extern char *logfile_name;
@@ -174,7 +174,7 @@ NORETURN void _exit_cleanup(int code, const char *file, int line)
code = exit_code = RERR_DEL_LIMIT;
if (io_error & IOERR_VANISHED)
code = exit_code = RERR_VANISHED;
- if (io_error & IOERR_GENERAL || log_got_error)
+ if (io_error & IOERR_GENERAL || got_xfer_error)
code = exit_code = RERR_PARTIAL;
}