summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2007-06-13 18:01:23 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2007-06-13 18:01:23 +0000
commita529d64e9da237e08114c22ff6a193bdcb4f2ed9 (patch)
treec582599ed59bf603db95068500fec3fbef420a5b /usr.bin/rcs
parentdefb103f7d697ca42eaf8d3a44fa9ca1514cb3f0 (diff)
value of 'author' in an rcs file is effectively a system username.
therefore, we should allow it to contain the same characters as a username. pointed out by jcs@ ok ray@ xsa@
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/rcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c
index b26c19c1801..f0a1c24765b 100644
--- a/usr.bin/rcs/rcs.c
+++ b/usr.bin/rcs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.38 2007/05/29 00:19:10 ray Exp $ */
+/* $OpenBSD: rcs.c,v 1.39 2007/06/13 18:01:22 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2410,7 +2410,7 @@ rcs_gettok(RCSFILE *rfp)
type = RCS_TOK_SCOLON;
} else if (ch == ':') {
type = RCS_TOK_COLON;
- } else if (isalpha(ch)) {
+ } else if (isalpha(ch) || ch == '_' || ch == '$' || ch == '.' || ch == '-') {
type = RCS_TOK_ID;
*(bp++) = ch;
for (;;) {
@@ -2419,7 +2419,7 @@ rcs_gettok(RCSFILE *rfp)
type = RCS_TOK_EOF;
break;
} else if (!isalnum(ch) && ch != '_' && ch != '-' &&
- ch != '/') {
+ ch != '/' && ch != '.' && ch != '$') {
ungetc(ch, pdp->rp_file);
break;
}