summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd
diff options
context:
space:
mode:
authorwiz <wiz>2001-07-22 01:54:53 +0000
committerwiz <wiz>2001-07-22 01:54:53 +0000
commit08529fff324e10a58fd6a58033136edb6c64abd1 (patch)
tree0173a6213f6f1b40b9461748d9f4179c62e6bb7b /mail/cyrus-imapd
parent8841eb795db2e211940f01e0518912bee9112f3b (diff)
downloadpkgsrc-08529fff324e10a58fd6a58033136edb6c64abd1.tar.gz
Fix case-sensitivity problem noted in pkg/13529 by John P. Darrow, by
using the patch supplied in that PR.
Diffstat (limited to 'mail/cyrus-imapd')
-rw-r--r--mail/cyrus-imapd/distinfo3
-rw-r--r--mail/cyrus-imapd/patches/patch-ah45
2 files changed, 47 insertions, 1 deletions
diff --git a/mail/cyrus-imapd/distinfo b/mail/cyrus-imapd/distinfo
index b8663879647..32b07f61fd0 100644
--- a/mail/cyrus-imapd/distinfo
+++ b/mail/cyrus-imapd/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2001/04/20 13:09:55 agc Exp $
+$NetBSD: distinfo,v 1.3 2001/07/22 01:54:53 wiz Exp $
SHA1 (cyrus-imapd-1.6.24.tar.gz) = 4449de2d25f255ff798dadf3e28f5a9dc69b479e
Size (cyrus-imapd-1.6.24.tar.gz) = 1046770 bytes
@@ -9,3 +9,4 @@ SHA1 (patch-ad) = 569d73e7a5a25cb275301e4cdfd2da69845b6ca0
SHA1 (patch-ae) = 30b502ac59c9c46e07690fa09a5e01ff743a95f3
SHA1 (patch-af) = 15be84e70ee10fecc6fdf868e862e7d9de4aca6e
SHA1 (patch-ag) = 16f3da75b0d575c5050527c6defd530de355ace5
+SHA1 (patch-ah) = 6edc4c840f2a43291e5393c87c09f06cd9d6e42a
diff --git a/mail/cyrus-imapd/patches/patch-ah b/mail/cyrus-imapd/patches/patch-ah
new file mode 100644
index 00000000000..9c914acdd53
--- /dev/null
+++ b/mail/cyrus-imapd/patches/patch-ah
@@ -0,0 +1,45 @@
+$NetBSD: patch-ah,v 1.1 2001/07/22 01:54:53 wiz Exp $
+
+--- imap/quota.c.orig Fri Aug 20 15:08:30 1999
++++ imap/quota.c Sat Jul 21 17:13:16 2001
+@@ -132,7 +132,7 @@
+ int compare_quota(a, b)
+ char *a, *b;
+ {
+- return strcasecmp(((struct quotaentry *)a)->quota.root,
++ return strcmp(((struct quotaentry *)a)->quota.root,
+ ((struct quotaentry *)b)->quota.root);
+ }
+
+@@ -172,8 +172,8 @@
+ /* If restricting our list, see if this quota file matches */
+ if (nroots) {
+ for (i = 0; i < nroots; i++) {
+- if (!strcasecmp(dirent->d_name, roots[i]) ||
+- (!strncasecmp(dirent->d_name, roots[i], strlen(roots[i])) &&
++ if (!strcmp(dirent->d_name, roots[i]) ||
++ (!strncmp(dirent->d_name, roots[i], strlen(roots[i])) &&
+ dirent->d_name[strlen(roots[i])] == '.')) break;
+ }
+ if (i == nroots) continue;
+@@ -231,7 +231,7 @@
+ int i, len, thisquota, thisquotalen;
+
+ while (firstquota < quota_num &&
+- strncasecmp(name, quota[firstquota].quota.root,
++ strncmp(name, quota[firstquota].quota.root,
+ strlen(quota[firstquota].quota.root)) > 0) {
+ r = fixquota_finish(firstquota++);
+ if (r) return r;
+@@ -240,9 +240,9 @@
+ thisquota = -1;
+ thisquotalen = 0;
+ for (i = firstquota;
+- i < quota_num && strcasecmp(name, quota[i].quota.root) >= 0; i++) {
++ i < quota_num && strcmp(name, quota[i].quota.root) >= 0; i++) {
+ len = strlen(quota[i].quota.root);
+- if (!strncasecmp(name, quota[i].quota.root, len) &&
++ if (!strncmp(name, quota[i].quota.root, len) &&
+ (!name[len] || name[len] == '.')) {
+ quota[i].refcount++;
+ if (len > thisquotalen) {