Displaying 2 results from an estimated 2 matches for "matchflg_no_prefixes".
2005 Sep 16
1
Bug#314473: rsync still fails badly with an "!" in .cvsignore
...to be trailing chars... The following patch seems
to fix it.
Paul Slootman
--- rsync-2.6.6.orig/exclude.c
+++ rsync-2.6.6/exclude.c
@@ -665,8 +665,10 @@
* for old include/exclude patterns where just "+ " and "- " are
* allowed as optional prefixes. */
if (mflags & MATCHFLG_NO_PREFIXES) {
- if (*s == '!' && mflags & MATCHFLG_CVS_IGNORE)
+ if (*s == '!' && mflags & MATCHFLG_CVS_IGNORE) {
new_mflags |= MATCHFLG_CLEAR_LIST; /* Tentative! */
+ s++;
+ }
} else if (xflags & XFLG_OLD_PREFIXES) {...
2005 Jan 31
1
[patch] add "--ignore" option
...;'!' rule has trailing characters: %s\n",
p);
exit_cleanup(RERR_SYNTAX);
@@ -794,6 +803,8 @@
continue;
if (mflags & MATCHFLG_INCLUDE)
flgs |= XFLG_DEF_INCLUDE;
+ else if (mflags & MATCHFLG_IGNORE)
+ flgs |= XFLG_DEF_IGNORE;
else if (mflags & MATCHFLG_NO_PREFIXES)
flgs |= XFLG_DEF_EXCLUDE;
add_filter_file(listp, p, flgs);
diff -ur ../rsync-HEAD-20050125-1221GMT.orig/flist.c ./flist.c
--- ../rsync-HEAD-20050125-1221GMT.orig/flist.c Tue Jan 25 12:21:14 2005
+++ ./flist.c Thu Jan 27 17:12:25 2005
@@ -223,8 +223,9 @@
/* This function is used to chec...