{
struct exclude_struct *ent, *next;
- if (verbose > 2) {
- rprintf(FINFO, "[%s] clearing %sexclude list\n",
- who_am_i(), listp->debug_type);
- }
-
for (ent = listp->head; ent; ent = next) {
next = ent->next;
free_exclude(ent);
if (!pat_len)
break;
/* If we got the special "!" token, clear the list. */
- if (incl < 0)
+ if (incl < 0) {
+ if (verbose > 2) {
+ rprintf(FINFO,
+ "[%s] clearing %sexclude list\n",
+ who_am_i(), listp->debug_type);
+ }
free_exclude_list(listp);
- else {
+ } else {
make_exclude(listp, cp, pat_len, incl);
if (verbose > 2) {
struct exclude_list_struct last_list = local_exclude_list;
local_exclude_list.head = local_exclude_list.tail = NULL;
send_directory(f, flist, f_name_to(file, fbuf));
+ if (verbose > 2) {
+ rprintf(FINFO, "[%s] popping %sexclude list\n",
+ who_am_i(), local_exclude_list.debug_type);
+ }
free_exclude_list(&local_exclude_list);
local_exclude_list = last_list;
}