diff options
author | Wayne Davison <wayned@samba.org> | 2003-12-15 08:08:44 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-12-15 08:08:44 +0000 |
commit | 6e35c72fdbe4951412081f34b2bcd1ca10ee7225 (patch) | |
tree | 76bc868e3f9de81c26caa163aa2ddc909e944231 /cleanup.c | |
parent | e2d22fee53d01043436ed7448caf6239134d201c (diff) | |
download | rsync-6e35c72fdbe4951412081f34b2bcd1ca10ee7225.tar.gz rsync-6e35c72fdbe4951412081f34b2bcd1ca10ee7225.tar.bz2 rsync-6e35c72fdbe4951412081f34b2bcd1ca10ee7225.zip |
Return new RERR_VANISHED code, as appropriate.
Diffstat (limited to 'cleanup.c')
-rw-r--r-- | cleanup.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |