X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/03019e41fc3299020c8acdda06cf57a1e2c57a25..f9df736a3e22f15307f9e304eb9069b06e94208f:/cvs-entries.diff diff --git a/cvs-entries.diff b/cvs-entries.diff index 3052025..b022296 100644 --- a/cvs-entries.diff +++ b/cvs-entries.diff @@ -8,9 +8,10 @@ To use this patch, run these commands for a successful build: ./configure (optional if already run) make ---- old/exclude.c -+++ new/exclude.c -@@ -216,6 +216,8 @@ static void add_rule(struct filter_list_ +diff --git a/exclude.c b/exclude.c +--- a/exclude.c ++++ b/exclude.c +@@ -213,6 +213,8 @@ static void add_rule(struct filter_list_struct *listp, const char *pat, if (!(lp = new_array(struct filter_list_struct, 1))) out_of_memory("add_rule"); lp->head = lp->tail = NULL; @@ -19,7 +20,7 @@ To use this patch, run these commands for a successful build: if (asprintf(&lp->debug_type, " [per-dir %s]", cp) < 0) out_of_memory("add_rule"); ret->u.mergelist = lp; -@@ -448,6 +450,14 @@ void *push_local_filters(const char *dir +@@ -445,6 +447,14 @@ void *push_local_filters(const char *dir, unsigned int dirlen) set_filter_dir(dir, dirlen); } @@ -34,7 +35,7 @@ To use this patch, run these commands for a successful build: if (strlcpy(dirbuf + dirbuf_len, ex->pattern, MAXPATHLEN - dirbuf_len) < MAXPATHLEN - dirbuf_len) { parse_filter_file(lp, dirbuf, ex->match_flags, -@@ -973,6 +983,7 @@ void parse_filter_file(struct filter_lis +@@ -1004,6 +1014,7 @@ void parse_filter_file(struct filter_list_struct *listp, const char *fname, char line[BIGPATHBUFLEN]; char *eob = line + sizeof line - 1; int word_split = mflags & MATCHFLG_WORD_SPLIT; @@ -42,7 +43,7 @@ To use this patch, run these commands for a successful build: if (!fname || !*fname) return; -@@ -1019,6 +1030,24 @@ void parse_filter_file(struct filter_lis +@@ -1050,6 +1061,24 @@ void parse_filter_file(struct filter_list_struct *listp, const char *fname, } break; } @@ -67,7 +68,7 @@ To use this patch, run these commands for a successful build: if (word_split && isspace(ch)) break; if (eol_nulls? !ch : (ch == '\n' || ch == '\r')) -@@ -1028,13 +1057,15 @@ void parse_filter_file(struct filter_lis +@@ -1059,13 +1088,15 @@ void parse_filter_file(struct filter_list_struct *listp, const char *fname, else overflow = 1; } @@ -84,9 +85,10 @@ To use this patch, run these commands for a successful build: parse_rule(listp, line, mflags, xflags); if (ch == EOF) break; ---- old/rsync.h -+++ new/rsync.h -@@ -117,6 +117,7 @@ +diff --git a/rsync.h b/rsync.h +--- a/rsync.h ++++ b/rsync.h +@@ -146,6 +146,7 @@ #define XFLG_OLD_PREFIXES (1<<1) #define XFLG_ANCHORED2ABS (1<<2) #define XFLG_ABS_IF_SLASH (1<<3) @@ -94,8 +96,9 @@ To use this patch, run these commands for a successful build: #define ATTRS_REPORT (1<<0) #define ATTRS_SKIP_MTIME (1<<1) ---- old/testsuite/exclude.test -+++ new/testsuite/exclude.test +diff --git a/testsuite/exclude.test b/testsuite/exclude.test +--- a/testsuite/exclude.test ++++ b/testsuite/exclude.test @@ -19,6 +19,7 @@ export CVSIGNORE makepath "$fromdir/foo/down/to/you" @@ -104,7 +107,7 @@ To use this patch, run these commands for a successful build: makepath "$fromdir/bar/down/to/foo/too" makepath "$fromdir/bar/down/to/bar/baz" makepath "$fromdir/mid/for/foo/and/that/is/who" -@@ -57,6 +58,9 @@ echo cvsout >"$fromdir/bar/down/to/foo/f +@@ -57,6 +58,9 @@ echo cvsout >"$fromdir/bar/down/to/foo/file1.bak" echo gone >"$fromdir/bar/down/to/foo/file3" echo lost >"$fromdir/bar/down/to/foo/file4" echo weird >"$fromdir/bar/down/to/foo/+ file3" @@ -114,7 +117,7 @@ To use this patch, run these commands for a successful build: echo cvsout-but-filtin >"$fromdir/bar/down/to/foo/file4.junk" echo smashed >"$fromdir/bar/down/to/foo/to" cat >"$fromdir/bar/down/to/bar/.filt2" <"$excl" <"$excl" <"$scratchdir/.cvsignore" <