rpms/cyrus-imapd/F-10 cyrus-imapd-2.3.15-nodebug.patch, NONE, 1.1 cyrus-imapd.spec, 1.53, 1.54
Michal Hlavinka
mhlavink at fedoraproject.org
Thu Nov 5 13:38:07 UTC 2009
- Previous message (by thread): rpms/cyrus-imapd/F-11 cyrus-imapd-2.3.15-nodebug.patch, NONE, 1.1 cyrus-imapd.spec, 1.57, 1.58
- Next message (by thread): rpms/ejabberd/devel ejabberd-dynamic_compile_loglevel.patch, NONE, 1.1 ejabberd.init, 1.8, 1.9 ejabberd.spec, 1.45, 1.46 import.log, 1.13, 1.14 mod_ctlextra.erl, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mhlavink
Update of /cvs/extras/rpms/cyrus-imapd/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4768
Modified Files:
cyrus-imapd.spec
Added Files:
cyrus-imapd-2.3.15-nodebug.patch
Log Message:
* Thu Nov 05 2009 Michal Hlavinka <mhlavink at redhat.com> - 2.3.15-2
- do not fill logs with mail (de)compression messages (#528093)
cyrus-imapd-2.3.15-nodebug.patch:
prot.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
--- NEW FILE cyrus-imapd-2.3.15-nodebug.patch ---
diff -up cyrus-imapd-2.3.15/lib/prot.c.nodebug cyrus-imapd-2.3.15/lib/prot.c
--- cyrus-imapd-2.3.15/lib/prot.c.nodebug 2009-11-05 14:20:53.845020152 +0100
+++ cyrus-imapd-2.3.15/lib/prot.c 2009-11-05 14:21:35.932145246 +0100
@@ -329,7 +329,7 @@ static int is_incompressible(const char
while (sig->type) {
if (n >= sig->len && !memcmp(p, sig->sig, sig->len)) {
- syslog(LOG_DEBUG, "data is %s", sig->type);
+// syslog(LOG_DEBUG, "data is %s", sig->type);
return 1;
}
sig++;
@@ -642,14 +642,14 @@ int prot_fill(struct protstream *s)
s->zstrm->next_out = s->zbuf;
s->zstrm->avail_out = s->zbuf_size;
- syslog(LOG_DEBUG, "inflate(%d bytes)", s->cnt);
+// syslog(LOG_DEBUG, "inflate(%d bytes)", s->cnt);
do {
if (!s->zstrm->avail_out) {
/* Need more space to decompress */
- syslog(LOG_DEBUG,
- "growing decompress buffer from %d to %d bytes",
- s->zbuf_size, s->zbuf_size + PROT_BUFSIZE);
+// syslog(LOG_DEBUG,
+// "growing decompress buffer from %d to %d bytes",
+// s->zbuf_size, s->zbuf_size + PROT_BUFSIZE);
s->zbuf = (unsigned char *)
xrealloc(s->zbuf, s->zbuf_size + PROT_BUFSIZE);
@@ -670,7 +670,7 @@ int prot_fill(struct protstream *s)
s->ptr = s->zbuf;
s->cnt = s->zbuf_size - s->zstrm->avail_out;
- syslog(LOG_DEBUG, " => decompressed to %d bytes", s->cnt);
+// syslog(LOG_DEBUG, " => decompressed to %d bytes", s->cnt);
}
#endif /* HAVE_ZLIB */
@@ -760,8 +760,8 @@ static int prot_flush_encode(struct prot
* Oversize the buffer, so we (hopefully) eliminate
* multiple small incremental reallocations.
*/
- syslog(LOG_DEBUG, "growing compress buffer from %u to %lu bytes",
- s->zbuf_size, def_size + PROT_BUFSIZE);
+// syslog(LOG_DEBUG, "growing compress buffer from %u to %lu bytes",
+// s->zbuf_size, def_size + PROT_BUFSIZE);
s->zbuf_size = def_size + PROT_BUFSIZE;
s->zbuf = (unsigned char *) xrealloc(s->zbuf, s->zbuf_size);
@@ -772,9 +772,9 @@ static int prot_flush_encode(struct prot
s->zstrm->next_out = s->zbuf;
s->zstrm->avail_out = s->zbuf_size;
- syslog(LOG_DEBUG, "deflate(%d bytes, level=%d, flush=%s)",
- left, s->zlevel,
- zflush == Z_FULL_FLUSH ? "FULL" : "SYNC");
+// syslog(LOG_DEBUG, "deflate(%d bytes, level=%d, flush=%s)",
+// left, s->zlevel,
+// zflush == Z_FULL_FLUSH ? "FULL" : "SYNC");
if (s->boundary) {
/* Set (new) compression level */
@@ -791,7 +791,7 @@ static int prot_flush_encode(struct prot
ptr = s->zbuf;
left = s->zbuf_size - s->zstrm->avail_out;
- syslog(LOG_DEBUG, " => compressed to %d bytes", left);
+// syslog(LOG_DEBUG, " => compressed to %d bytes", left);
}
#endif /* HAVE_ZLIB */
Index: cyrus-imapd.spec
===================================================================
RCS file: /cvs/extras/rpms/cyrus-imapd/F-10/cyrus-imapd.spec,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -p -r1.53 -r1.54
--- cyrus-imapd.spec 18 Sep 2009 14:22:24 -0000 1.53
+++ cyrus-imapd.spec 5 Nov 2009 13:38:07 -0000 1.54
@@ -1,6 +1,6 @@
Name: cyrus-imapd
Version: 2.3.15
-Release: 1%{?dist}
+Release: 2%{?dist}
# ********************** BUILD TIME OPTIONS START **********************
@@ -116,6 +116,10 @@ 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
Patch20: cyrus-imapd-2.3.13-bufov.patch
+
+# required for c-i <= 2.3.15, rhbz#528093
+Patch21: cyrus-imapd-2.3.15-nodebug.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
@@ -214,6 +218,7 @@ one running the server.
%patch18 -p1 -b .krb4
%patch19 -p1 -b .db4.7
%patch20 -p1 -b .bufov
+%patch21 -p1 -b .nodebug
# only to update config.* files
automake -a -f -c || :
@@ -731,6 +736,9 @@ fi
%{_mandir}/man1/*
%changelog
+* Thu Nov 05 2009 Michal Hlavinka <mhlavink at redhat.com> - 2.3.15-2
+- do not fill logs with mail (de)compression messages (#528093)
+
* Fri Sep 18 2009 Michal Hlavinka <mhlavink at redhat.com> - 2.3.15-1
- fix another buffer overflow in cyrus sieve (CVE-2009-3235)
- Previous message (by thread): rpms/cyrus-imapd/F-11 cyrus-imapd-2.3.15-nodebug.patch, NONE, 1.1 cyrus-imapd.spec, 1.57, 1.58
- Next message (by thread): rpms/ejabberd/devel ejabberd-dynamic_compile_loglevel.patch, NONE, 1.1 ejabberd.init, 1.8, 1.9 ejabberd.spec, 1.45, 1.46 import.log, 1.13, 1.14 mod_ctlextra.erl, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list