cvsserver: Limit config parser to needed options
authorFrank Lichtenheld <frank@lichtenheld.de>
Sun, 13 May 2007 00:16:24 +0000 (02:16 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 13 May 2007 19:14:22 +0000 (12:14 -0700)
commitf987afa8fe13c2a1512094362b06172419977bc4
tree104d8efcaa6edc8c4f31591ab70fc62547175faa
parent198a2a8a69921327513c32512bdac77f52ab95d3
cvsserver: Limit config parser to needed options

Change the configuration parser so that it ignores
everything except for ^gitcvs.((ext|pserver).)?
This greatly reduces the risk of failing while
parsing some unknown and irrelevant config option.

The bug that triggered this change was that the
parsing doesn't handle sections that have a
subsection and a variable with the same name.

While this bug still remains, all remaining
causes can be attributed to user error, since
there are no defined variables gitcvs.ext and
gitcvs.pserver.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsserver.perl