Only call cleanup_set() if keep_partial is set.
authorWayne Davison <wayned@samba.org>
Thu, 10 Nov 2005 16:57:30 +0000 (16:57 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 10 Nov 2005 16:57:30 +0000 (16:57 +0000)
receiver.c

index 5a88311..805f0f6 100644 (file)
@@ -658,7 +658,7 @@ int recv_files(int f_in, struct file_list *flist, char *local_name)
                                continue;
                        }
 
                                continue;
                        }
 
-                       if (partialptr)
+                       if (keep_partial)
                                cleanup_set(fnametmp, partialptr, file, fd1, fd2);
                }
 
                                cleanup_set(fnametmp, partialptr, file, fd1, fd2);
                }