rpms/cyrus-imapd/F-11 cyrus-imapd-2.3.16-nodenny.patch, NONE, 1.1 cyrus-imapd.imap-2.3.x-conf, 1.1, 1.2 cyrus-imapd.spec, 1.61, 1.62
Michal Hlavinka
mhlavink at fedoraproject.org
Thu Jan 14 13:08:35 UTC 2010
Author: mhlavink
Update of /cvs/pkgs/rpms/cyrus-imapd/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25294
Modified Files:
cyrus-imapd.imap-2.3.x-conf cyrus-imapd.spec
Added Files:
cyrus-imapd-2.3.16-nodenny.patch
Log Message:
* Mon Jan 11 2010 Michal Hlavinka <mhlavink at redhat.com> - 2.3.16-2
- ignore user_denny.db if missing (#553011)
- fix location of certificates
cyrus-imapd-2.3.16-nodenny.patch:
global.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- NEW FILE cyrus-imapd-2.3.16-nodenny.patch ---
diff -up cyrus-imapd-2.3.16/imap/global.c.nodenny cyrus-imapd-2.3.16/imap/global.c
--- cyrus-imapd-2.3.16/imap/global.c.nodenny 2009-10-13 17:10:36.000000000 +0200
+++ cyrus-imapd-2.3.16/imap/global.c 2010-01-14 14:00:10.455808186 +0100
@@ -542,14 +542,22 @@ static int acl_ok(const char *user, stru
int access_ok(const char *user, const char *service, char *msgbuf, int size)
{
static char *fname = NULL;
+ static int nodb = 0;
struct db *db = NULL;
int r, ret = 1; /* access always granted by default */
+ if (nodb) return ret;
+
if (!fname) {
+ struct stat s;
/* create path to database */
fname = xmalloc(strlen(config_dir) + sizeof(FNAME_USERDENYDB) + 1);
strcpy(fname, config_dir);
strcat(fname, FNAME_USERDENYDB);
+ if (stat(fname, &s) == -1 && errno==ENOENT) {
+ nodb = 1;
+ return ret;
+ }
}
/* try to open database */
Index: cyrus-imapd.imap-2.3.x-conf
===================================================================
RCS file: /cvs/pkgs/rpms/cyrus-imapd/F-11/cyrus-imapd.imap-2.3.x-conf,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- cyrus-imapd.imap-2.3.x-conf 28 Feb 2006 20:04:01 -0000 1.1
+++ cyrus-imapd.imap-2.3.x-conf 14 Jan 2010 13:08:35 -0000 1.2
@@ -6,6 +6,6 @@ sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
-tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
-tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
-tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
+tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
+tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
+tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
Index: cyrus-imapd.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cyrus-imapd/F-11/cyrus-imapd.spec,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -p -r1.61 -r1.62
--- cyrus-imapd.spec 22 Dec 2009 19:55:48 -0000 1.61
+++ cyrus-imapd.spec 14 Jan 2010 13:08:35 -0000 1.62
@@ -1,6 +1,6 @@
Name: cyrus-imapd
Version: 2.3.16
-Release: 1%{?dist}
+Release: 2%{?dist}
# ********************** BUILD TIME OPTIONS START **********************
@@ -113,9 +113,13 @@ Patch12: cyrus-imapd-2.3.7-notify_sms.pa
Patch14: cyrus-imapd-2.3.1-authid_normalize.patch
Patch15: cyrus-imapd-2.3.1-make_md5_defaults.patch
Patch18: cyrus-imapd-2.3.7-krb4.patch
+
# https://bugzilla.redhat.com/show_bug.cgi?id=461875
Patch19: cyrus-imapd-2.3.12p2-current-db.patch
+# workaround, rhbz#553011
+Patch20: cyrus-imapd-2.3.16-nodenny.patch
+
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf >= 2.59
BuildRequires: cyrus-sasl-devel >= 2.1.15-1, perl-devel, tcp_wrappers
@@ -213,6 +217,7 @@ one running the server.
%patch15 -p1 -b .make_md5_defaults
%patch18 -p1 -b .krb4
%patch19 -p1 -b .db4.7
+%patch20 -p1 -b .nodenny
# only to update config.* files
automake -a -f -c || :
@@ -730,6 +735,10 @@ fi
%{_mandir}/man1/*
%changelog
+* Mon Jan 11 2010 Michal Hlavinka <mhlavink at redhat.com> - 2.3.16-2
+- ignore user_denny.db if missing (#553011)
+- fix location of certificates
+
* Tue Dec 22 2009 Michal Hlavinka <mhlavink at redhat.com> - 2.3.16-1
- updated to 2.3.16
More information about the scm-commits
mailing list