summaryrefslogtreecommitdiff
path: root/groupaccess.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-08-19 17:00:17 +0100
committerColin Watson <cjwatson@debian.org>2015-08-19 17:40:32 +0100
commit927d0032b865f05679d3cc052bc13cb0e6490283 (patch)
tree69f782deb79182f26069ff41e9539f17e6e44912 /groupaccess.c
parentd35c65e77ab6a6a95fefa2c852827ba08e507f0b (diff)
parent810eecd6b2e03770f21e46b5cb8ce8c7fcd46da8 (diff)
New upstream release (6.9p1).
Diffstat (limited to 'groupaccess.c')
-rw-r--r--groupaccess.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/groupaccess.c b/groupaccess.c
index 4fca04471..2518c8487 100644
--- a/groupaccess.c
+++ b/groupaccess.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: groupaccess.c,v 1.15 2015/01/20 23:14:00 deraadt Exp $ */ 1/* $OpenBSD: groupaccess.c,v 1.16 2015/05/04 06:10:48 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Kevin Steves. All rights reserved. 3 * Copyright (c) 2001 Kevin Steves. All rights reserved.
4 * 4 *
@@ -97,11 +97,9 @@ int
97ga_match_pattern_list(const char *group_pattern) 97ga_match_pattern_list(const char *group_pattern)
98{ 98{
99 int i, found = 0; 99 int i, found = 0;
100 size_t len = strlen(group_pattern);
101 100
102 for (i = 0; i < ngroups; i++) { 101 for (i = 0; i < ngroups; i++) {
103 switch (match_pattern_list(groups_byname[i], 102 switch (match_pattern_list(groups_byname[i], group_pattern, 0)) {
104 group_pattern, len, 0)) {
105 case -1: 103 case -1:
106 return 0; /* Negated match wins */ 104 return 0; /* Negated match wins */
107 case 0: 105 case 0: