summaryrefslogtreecommitdiff
path: root/devel/cvs-devel/files/patch-keyword_alphanumerics
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-05-26 04:58:42 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-05-26 04:58:42 +0000
commitdc2ba353b6add779ef99cc375db07c0773652c68 (patch)
treefd297e003671dbe92e5220abe24b60c1a724b78e /devel/cvs-devel/files/patch-keyword_alphanumerics
parent[new port] devel/cvs-devel 1.12.13_8 (diff)
[new port] devel/cvs-devel 1.12.13_8
Latest upstream/feature release, similar to Debian, see the ChangeLog excerpts available at http://cto.homelinux.net/usr/ports/devel/cvs-devel/ChangeLog page. This feature release/version, I think, would be quite useful for all those users who want to share and, or transfer their existing CVS repositories from Linux to FreeBSD machines. PR: ports/118033 Submitted by: Balwinder S Dheeman <bdheeman@gmail.com>
Notes
Notes: svn path=/head/; revision=213677
Diffstat (limited to 'devel/cvs-devel/files/patch-keyword_alphanumerics')
-rw-r--r--devel/cvs-devel/files/patch-keyword_alphanumerics27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/cvs-devel/files/patch-keyword_alphanumerics b/devel/cvs-devel/files/patch-keyword_alphanumerics
new file mode 100644
index 000000000000..1ad62b266678
--- /dev/null
+++ b/devel/cvs-devel/files/patch-keyword_alphanumerics
@@ -0,0 +1,27 @@
+# Fix keyword handling to accept alphanumerics, not just alphabetics.
+# Thanks to Branden Robinson for this fix.
+diff -Nur src/rcs.c src/rcs.c
+--- src/rcs.c 2005-09-28 23:25:59.000000000 +0800
++++ src/rcs.c 2006-02-26 17:58:32.000000000 +0800
+@@ -3680,13 +3680,18 @@
+ srch_len -= (srch_next + 1) - srch;
+ srch = srch_next + 1;
+
+- /* Look for the first non alphabetic character after the '$'. */
++ /*
++ * Accept alphanumerics, not just alphabetics. XFree86, anyone?
++ * Branden Robinson Sat, 7 Sep 2002 02:04:59 -0500
++ */
++
++ /* Look for the first non alphanumeric character after the '$'. */
+ send = srch + srch_len;
+ for (s = srch; s < send; s++)
+- if (! isalpha ((unsigned char) *s))
++ if (! isalnum ((unsigned char) *s))
+ break;
+
+- /* If the first non alphabetic character is not '$' or ':',
++ /* If the first non alphanumeric character is not '$' or ':',
+ then this is not an RCS keyword. */
+ if (s == send || (*s != '$' && *s != ':'))
+ continue;