fixed a nasty bug in the handling of the --delete option when there
[rsync/rsync.git] / rsync.c
diff --git a/rsync.c b/rsync.c
index 38bbdcd..f961a5d 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -548,10 +548,10 @@ static void delete_files(struct file_list *flist)
              strncmp(flist->files[j].name,last_name, strlen(last_name))==0)
                  continue;
          last_name = flist->files[j].name;
+         if (!(local_file_list = send_file_list(-1,1,&last_name)))
+                 continue;
          if (verbose > 1)
                  fprintf(FINFO,"deleting in %s\n", last_name);
-         if (!(local_file_list = send_file_list(-1,1,&last_name)))
-                 return;
 
          for (i=local_file_list->count-1;i>=0;i--) {
                  if (!local_file_list->files[i].name) continue;