thomas: server/patches/cyrus-imapd/cyrus-imapd-2.3.13 KOLAB_cyrus-imapd-2.3.13_Groups2.patch, 1.1.2.1, 1.1.2.2
cvs at kolab.org
cvs at kolab.org
Mon Apr 6 16:48:37 CEST 2009
Author: thomas
Update of /kolabrepository/server/patches/cyrus-imapd/cyrus-imapd-2.3.13
In directory doto:/tmp/cvs-serv25163/cyrus-imapd-2.3.13
Modified Files:
Tag: kolab_2_2_branch
KOLAB_cyrus-imapd-2.3.13_Groups2.patch
Log Message:
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 ...
Index: KOLAB_cyrus-imapd-2.3.13_Groups2.patch
===================================================================
RCS file: /kolabrepository/server/patches/cyrus-imapd/cyrus-imapd-2.3.13/KOLAB_cyrus-imapd-2.3.13_Groups2.patch,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- KOLAB_cyrus-imapd-2.3.13_Groups2.patch 1 Apr 2009 17:03:45 -0000 1.1.2.1
+++ KOLAB_cyrus-imapd-2.3.13_Groups2.patch 6 Apr 2009 14:48:35 -0000 1.1.2.2
@@ -148,7 +148,7 @@
+ 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 @@
+ 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)) {
More information about the commits
mailing list