summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-19 12:14:22 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-19 12:14:22 +0000
commitb6af1432c394ba8628633b888b92aa43c53cf234 (patch)
tree7e77149d15bc2ec0dc5504b1123feaa458a97bd8 /usr.bin/cvs
parent172b9235af2bf57c47cc398145d502c118e043b4 (diff)
Weird, but our goal is compatibility: treat '\t' in front of keyword as '#'.
OK joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/cvs.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index af238f0974c..0d1a2488fe9 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.133 2007/09/19 11:53:27 tobias Exp $ */
+/* $OpenBSD: cvs.c,v 1.134 2007/09/19 12:14:21 tobias Exp $ */
/*
* Copyright (c) 2006, 2007 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -434,8 +434,13 @@ cvs_read_rcfile(void)
while (*p == ' ')
p++;
- /* allow comments */
- if (*p == '#')
+ /*
+ * Allow comments.
+ * GNU cvs stops parsing a line if it encounters a \t
+ * in front of a command, stick at this behaviour for
+ * compatibility.
+ */
+ if (*p == '#' || *p == '\t')
continue;
lp = strchr(p, ' ');