From b6af1432c394ba8628633b888b92aa43c53cf234 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Wed, 19 Sep 2007 12:14:22 +0000 Subject: Weird, but our goal is compatibility: treat '\t' in front of keyword as '#'. OK joris@ --- usr.bin/cvs/cvs.c | 11 ++++++++--- 1 file 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 * Copyright (c) 2004 Jean-Francois Brousseau @@ -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, ' '); -- cgit v1.2.3