diff options
author | wiz <wiz> | 2001-07-22 01:54:53 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-07-22 01:54:53 +0000 |
commit | f454d553524f8015e9ebbad136fe6a21b20e782b (patch) | |
tree | 0173a6213f6f1b40b9461748d9f4179c62e6bb7b /mail/cyrus-imapd/patches | |
parent | 6a38ee82860b61ea4e7d2ca7af528c1e4c517968 (diff) | |
download | pkgsrc-f454d553524f8015e9ebbad136fe6a21b20e782b.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/patches')
-rw-r--r-- | mail/cyrus-imapd/patches/patch-ah | 45 |
1 files changed, 45 insertions, 0 deletions
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) { |