summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index a2e8afa123d..93c487c32b7 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.173 2006/05/27 05:59:32 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.174 2006/05/27 18:04:46 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2613,6 +2613,14 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, char *data,
}
}
+ if (cvs_tagname != NULL &&
+ !strncmp(c, cvs_tagname, strlen(cvs_tagname)) &&
+ found != 1) {
+ found = 1;
+ kwstr = cvs_tagname;
+ kwtype = RCS_KW_ID;
+ }
+
/* unknown keyword, continue looking */
if (found == 0) {
c = start;