summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-17 17:09:22 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-17 17:09:22 +0000
commit35267bc52e76beb29a5f06da67f29f589b4bfaa2 (patch)
tree7c6686338d8a8af2a39bc2ebdf20473c2cc5b9ef /usr.bin/cvs
parent7b462ff46148fe71632532dd5aa1af48e5c69333 (diff)
Regular expressions to match repository are allowed to have % in front.
Diff by Jonathan Armani.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/trigger.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/cvs/trigger.c b/usr.bin/cvs/trigger.c
index 8d3d8318c56..bc3f0dad121 100644
--- a/usr.bin/cvs/trigger.c
+++ b/usr.bin/cvs/trigger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trigger.c,v 1.12 2008/06/11 02:02:08 joris Exp $ */
+/* $OpenBSD: trigger.c,v 1.13 2008/06/17 17:09:21 tobias Exp $ */
/*
* Copyright (c) 2008 Tobias Stoeckmann <tobias@openbsd.org>
* Copyright (c) 2008 Jonathan Armani <dbd@asystant.net>
@@ -366,10 +366,6 @@ cvs_trigger_getlines(char * file, char * repo)
if (*q == '\0')
goto bad;
- /* XXX why do you check *p (regex)? */
- if (*p == '%')
- goto bad;
-
*q++ = '\0';
regex = p;