Репозитории ALT
S: | 1.11.23-alt9 |
5.1: | 1.11.23-alt3.M50P.1 |
4.1: | 1.11.22-alt3 |
4.0: | 1.11.22-alt2 |
+updates: | 1.11.22-alt2 |
3.0: | 1.11.20-alt1 |
Группа :: Разработка/Прочее
Пакет: cvs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: cvs-1.11.20-deb-expand_keywords-alphanumeric.patch
Скачать
Скачать
diff -upk.orig cvs-1.11.20.orig/src/rcs.c cvs-1.11.20/src/rcs.c
--- cvs-1.11.20.orig/src/rcs.c 2005-09-29 12:58:22 +0000
+++ cvs-1.11.20/src/rcs.c 2005-09-29 12:58:39 +0000
@@ -3737,13 +3737,18 @@ expand_keywords (rcs, ver, name, log, lo
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;