diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-04-02 20:57:54 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-04-02 20:57:54 +0000 |
commit | ba37f6b6fd488dbe7dd7be429e8b7a994a783155 (patch) | |
tree | a7a57708a1405d9f2d2a05f957a6f7dd47c988aa /usr.bin/cvs/rcs.c | |
parent | 5428968f0f8fb5057e43ff7c716316f56b5b8876 (diff) |
some characters are in fact allowed in symbol names, don't freak
out when we encounter them, but handle them correctly.
fixes an issue i ran into when running opencvs update on my local tree;
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index 51b6e3c3d3a..ffa175561c6 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.159 2006/04/01 18:02:55 joris Exp $ */ +/* $OpenBSD: rcs.c,v 1.160 2006/04/02 20:57:53 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -2398,7 +2398,8 @@ rcs_gettok(RCSFILE *rfp) *(bp++) = ch; for (;;) { ch = getc(pdp->rp_file); - if (!isalnum(ch) && ch != '_' && ch != '-') { + if (!isalnum(ch) && ch != '_' && ch != '-' && + ch != '/') { ungetc(ch, pdp->rp_file); break; } |