#include "rsync.h"
extern int verbose;
+extern int eol_nulls;
+extern int list_only;
+extern int recurse;
+
+extern char curr_dir[];
struct exclude_list_struct exclude_list;
struct exclude_list_struct local_exclude_list;
}
else if ((ex->match_flags & MATCHFLG_ABS_PATH) && *name != '/') {
static char full_name[MAXPATHLEN];
- extern char curr_dir[];
int plus = curr_dir[1] == '\0'? 1 : 0;
pathjoin(full_name, sizeof full_name, curr_dir+plus, name);
name = full_name;
FILE *fp;
char line[MAXPATHLEN];
char *eob = line + MAXPATHLEN - 1;
- extern int eol_nulls;
+ int word_split = xflags & XFLG_WORD_SPLIT;
if (!fname || !*fname)
return;
continue;
break;
}
+ if (word_split && isspace(ch))
+ break;
if (eol_nulls? !ch : (ch == '\n' || ch == '\r'))
break;
if (s < eob)
void send_exclude_list(int f)
{
struct exclude_struct *ent;
- extern int list_only, recurse;
/* This is a complete hack - blame Rusty.
*