diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-06-13 18:01:23 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-06-13 18:01:23 +0000 |
commit | a529d64e9da237e08114c22ff6a193bdcb4f2ed9 (patch) | |
tree | c582599ed59bf603db95068500fec3fbef420a5b /usr.bin/rcs | |
parent | defb103f7d697ca42eaf8d3a44fa9ca1514cb3f0 (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.c | 6 |
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; } |