Several fixes for merge file handling:
authorMatt McCutchen <matt@mattmccutchen.net>
Tue, 2 Sep 2008 00:01:19 +0000 (17:01 -0700)
committerWayne Davison <wayned@samba.org>
Tue, 2 Sep 2008 00:01:19 +0000 (17:01 -0700)
commitdaa8d920942f064b68f913eeb87da28753dc203a
treebb0af802c8a6dae9148cf7ea233e8b8ec9eb1ea8
parentadc2476fa213797d849ae80fa8b5fcd9eba5dc4f
Several fixes for merge file handling:
- Free a mergelist's parent_dirscanned filters the last time it is
  popped or as soon as the filters are discarded due to the "n"
  modifier.  Aside from not leaking memory, this is needed to clean up
  any mergelists defined during the parent_dirscan to avoid crashing by
  trying to restore nonexistent state for them in pop_local_filters.
- Make push_local_filters save the current mergelist_cnt, and make
  pop_local_filters assert that it has the correct number of mergelists
  before restoring their state.
- Assert that mergelists get deactivated in strict LIFO order to catch
  any glitches as soon as they happen.  Free linked lists of filters in
  reverse order to make that the case.
- Add a bunch of mergelist-related debug output (--debug=filter2).
exclude.c
rsync.h