diff options
author | Wayne Davison <wayned@samba.org> | 2007-11-22 09:56:21 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-11-22 10:05:36 -0800 |
commit | 3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47 (patch) | |
tree | 2ec9e186c513214ff35ea1060b773e1d63106858 /cleanup.c | |
parent | a6c6f8e650f9790c7827ad1ff321fe21daf522cf (diff) | |
download | android_external_rsync-3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47.tar.gz android_external_rsync-3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47.tar.bz2 android_external_rsync-3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |