summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patches/cyrus-imapd/cyrus-imapd-2.3.13/KOLAB_cyrus-imapd-2.3.13_Groups2.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/cyrus-imapd/cyrus-imapd-2.3.13/KOLAB_cyrus-imapd-2.3.13_Groups2.patch b/patches/cyrus-imapd/cyrus-imapd-2.3.13/KOLAB_cyrus-imapd-2.3.13_Groups2.patch
index 36ba6b5..10ed3ea 100644
--- a/patches/cyrus-imapd/cyrus-imapd-2.3.13/KOLAB_cyrus-imapd-2.3.13_Groups2.patch
+++ b/patches/cyrus-imapd/cyrus-imapd-2.3.13/KOLAB_cyrus-imapd-2.3.13_Groups2.patch
@@ -148,7 +148,7 @@ diff -r 0d5aacd84718 lib/auth_unix.c
+ if (!groupfile) groupfile = fopen("/etc/group", "r");
+ if (groupfile) {
+ while ((grp = fgetgrent(groupfile))) {
-+ if (strcmp(grp->gr_name, name) == 0) {
++ if (strcasecmp(grp->gr_name, name) == 0) {
+ fclose(groupfile);
+ return grp;
+ }
@@ -207,7 +207,7 @@ diff -r 0d5aacd84718 lib/auth_unix.c
+ if (groupfile) {
+ while ((grp = fgetgrent(groupfile))) {
+ for (mem = grp->gr_mem; *mem; mem++) {
-+ if (!strcmp(*mem, identifier)) break;
++ if (!strcasecmp(*mem, identifier)) break;
+ }
- if (*mem || (pwd && pwd->pw_gid == grp->gr_gid)) {