Commit 531d06b8 authored by Martin Pool's avatar Martin Pool

Fix from Wayne Davison:

  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.
parent c6a7f2f4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment