summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arendsen Hein <thomas@intevation.de>2009-04-06 14:48:35 (GMT)
committerThomas Arendsen Hein <thomas@intevation.de>2009-04-06 14:48:35 (GMT)
commit806ee2038bf231184cfceaefba916676d1e3f50b (patch)
treeb482d3435e8dd592e64f13770df182418ac9dedf
parentf4526a10adb576a2ec18e17ed081a60a1aebc973 (diff)
downloadserver-806ee2038bf231184cfceaefba916676d1e3f50b.tar.gz
Forgotten commit for "Final changes for kolab/issue2535: use strcasecmp ..."
Having the imapd patches outside the imapd directory just calls for mistakes like this one ...
-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)) {