summaryrefslogtreecommitdiff
path: root/groupaccess.c
diff options
context:
space:
mode:
authorCorinna Vinschen <vinschen@redhat.com>2019-02-20 13:41:24 +0100
committerDarren Tucker <dtucker@dtucker.net>2019-02-22 15:04:16 +1100
commitf02afa350afac1b2f2d1413259a27a4ba1e2ca24 (patch)
treec568d26fa3747cfe35d86b46df84d5bcc0417245 /groupaccess.c
parent4c55b674835478eb80a1a7aeae588aa654e2a433 (diff)
Revert "[auth.c] On Cygwin, refuse usernames that have differences in case"
This reverts commit acc9b29486dfd649dfda474e5c1a03b317449f1c. Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
Diffstat (limited to 'groupaccess.c')
-rw-r--r--groupaccess.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/groupaccess.c b/groupaccess.c
index 9e4d25521..43367990d 100644
--- a/groupaccess.c
+++ b/groupaccess.c
@@ -103,7 +103,11 @@ ga_match_pattern_list(const char *group_pattern)
103 int i, found = 0; 103 int i, found = 0;
104 104
105 for (i = 0; i < ngroups; i++) { 105 for (i = 0; i < ngroups; i++) {
106#ifndef HAVE_CYGWIN
106 switch (match_pattern_list(groups_byname[i], group_pattern, 0)) { 107 switch (match_pattern_list(groups_byname[i], group_pattern, 0)) {
108#else
109 switch (match_pattern_list(groups_byname[i], group_pattern, 1)) {
110#endif
107 case -1: 111 case -1:
108 return 0; /* Negated match wins */ 112 return 0; /* Negated match wins */
109 case 0: 113 case 0: