X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e2d22fee53d01043436ed7448caf6239134d201c..6e35c72fdbe4951412081f34b2bcd1ca10ee7225:/cleanup.c diff --git a/cleanup.c b/cleanup.c index 49d18307..ea973391 100644 --- a/cleanup.c +++ b/cleanup.c @@ -131,8 +131,11 @@ void _exit_cleanup(int code, const char *file, int line) } } - if (code == 0 && (io_error || log_got_error)) { - code = RERR_PARTIAL; + if (code == 0) { + if ((io_error & ~IOERR_VANISHED) || log_got_error) + code = RERR_PARTIAL; + else if (io_error) + code = RERR_VANISHED; } if (code) log_exit(code, file, line);