The cleanup code that handles moving the temp file to the partial
[rsync/rsync.git] / cleanup.c
index f1ee321..2f47ef7 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
@@ -117,8 +117,8 @@ NORETURN void _exit_cleanup(int code, const char *file, int line)
                }
        }
 
-       if (cleanup_got_literal && cleanup_new_fname && keep_partial
-           && handle_partial_dir(cleanup_new_fname, PDIR_CREATE)) {
+       if (cleanup_got_literal && cleanup_fname && cleanup_new_fname
+        && keep_partial && handle_partial_dir(cleanup_new_fname, PDIR_CREATE)) {
                char *fname = cleanup_fname;
                cleanup_fname = NULL;
                if (cleanup_fd_r != -1)