Return new RERR_VANISHED code, as appropriate.
authorWayne Davison <wayned@samba.org>
Mon, 15 Dec 2003 08:08:44 +0000 (08:08 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 15 Dec 2003 08:08:44 +0000 (08:08 +0000)
cleanup.c

index 49d18307a6f5aa12e1c163057d7e16a438a08a43..ea973391c92f7a619af9d0bd9417060e944ce2cd 100644 (file)
--- 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);