ALT Linux repos
S: | 1.11.23-alt9 |
5.0: | 1.11.23-alt1 |
4.1: | 1.11.22-alt3 |
4.0: | 1.11.22-alt2 |
+updates: | 1.11.22-alt2 |
3.0: | 1.11.20-alt1 |
Group :: Development/Other
RPM: cvs
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: cvs-1.11.23-deb-expand_keywords-alphanumeric.patch
Download
Download
--- cvs-1.11.23/src/rcs.c
+++ cvs-1.11.23/src/rcs.c
@@ -3714,13 +3714,18 @@ expand_keywords (rcs, ver, name, log, loglen, expand, buf, len, retbuf, retlen)
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;