Fix bug where the --delete option was deleting files locally which
authorPaul Mackerras <paulus@samba.org>
Thu, 27 Jun 1996 01:45:24 +0000 (01:45 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 27 Jun 1996 01:45:24 +0000 (01:45 +0000)
should have been ignored when the -C option was used.

rsync.c

diff --git a/rsync.c b/rsync.c
index 8046b70..ec23c9e 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -450,6 +450,8 @@ static void delete_files(struct file_list *flist)
   char *dot=".";
   int i;
 
+  if (!am_server && cvs_exclude)
+    add_cvs_excludes();
   if (!(local_file_list = send_file_list(-1,recurse,1,&dot)))
     return;