Fix from Wayne Davison:
authorMartin Pool <mbp@samba.org>
Thu, 21 Jun 2001 06:15:34 +0000 (06:15 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 21 Jun 2001 06:15:34 +0000 (06:15 +0000)
  The --cvs-exclude option is broken in the CVS version of rsync
  because of a cut-and-paste-induced bug in exclude.c:

  This bug could cause the sending rsync to crash when it dereferenced
  a NULL pointer.

exclude.c

index 5351c30..53852f6 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -167,7 +167,7 @@ int check_exclude(char *name, struct exclude_struct **local_exclude_list,
 
        if (local_exclude_list) {
                for (n=0; local_exclude_list[n]; n++) {
-                        ent = exclude_list[n];
+                        ent = local_exclude_list[n];
                        if (check_one_exclude(name, ent, st)) {
                                 report_exclude_result(name, ent, st);
                                return !ent->include;