summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/conf.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/conf.y')
-rw-r--r--usr.bin/cvs/conf.y9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/cvs/conf.y b/usr.bin/cvs/conf.y
index 1b350e9fdb3..57cb242cf2f 100644
--- a/usr.bin/cvs/conf.y
+++ b/usr.bin/cvs/conf.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.y,v 1.3 2004/09/27 12:39:29 jfb Exp $ */
+/* $OpenBSD: conf.y,v 1.4 2004/11/26 16:23:50 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -640,6 +640,7 @@ u_int
cvs_acl_eval(struct cvs_op *op)
{
u_int res;
+ char fpath[MAXPATHLEN];
CVSFILE *cf;
struct acl_rule *rule;
@@ -653,9 +654,11 @@ cvs_acl_eval(struct cvs_op *op)
continue;
/* see if one of the files has a matching path */
- TAILQ_FOREACH(cf, &(op->co_files), cf_list)
- if (!cvs_acl_matchpath(cf->cf_path, rule->ar_path))
+ TAILQ_FOREACH(cf, &(op->co_files), cf_list) {
+ /* XXX borked */
+ if (!cvs_acl_matchpath(fpath, rule->ar_path))
continue;
+ }
res = rule->ar_act;