Package: dovecot / 1:2.3.21.1+dfsg1-1~bpo12+1

Metadata

Package Version Patches format
dovecot 1:2.3.21.1+dfsg1-1~bpo12+1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
split protocols.patch | (download)

doc/example-config/dovecot.conf | 4 2 + 2 - 0 !
src/config/all-settings.c | 2 1 + 1 - 0 !
src/master/master-settings.c | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 4 deletions(-)

 split-protocols

Updated: Mon, 25 Nov 2013 20:11:59 -0500
fix mail_plugin_dir default.patch | (download)

doc/example-config/conf.d/10-mail.conf | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix mail_plugin_dir default

Bug: #624294

ssl cert location.patch | (download)

doc/example-config/conf.d/10-ssl.conf | 7 4 + 3 - 0 !
doc/mkcert.sh | 10 5 + 5 - 0 !
2 files changed, 9 insertions(+), 8 deletions(-)

 ssl cert location

Bug: #608719

tcpwrapper.patch | (download)

doc/example-config/conf.d/10-tcpwrapper.conf | 14 14 + 0 - 0 !
doc/example-config/conf.d/Makefile.am | 1 1 + 0 - 0 !
2 files changed, 15 insertions(+)

 add tcp wrapper support

Bug: #685850

default mail_location.patch | (download)

doc/example-config/conf.d/10-mail.conf | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 default location for user mailboxes

Bug: #623440

mboxlocking.patch | (download)

doc/example-config/conf.d/10-mail.conf | 8 7 + 1 - 0 !
src/config/all-settings.c | 2 1 + 1 - 0 !
src/lib-storage/index/mbox/mbox-settings.c | 2 1 + 1 - 0 !
3 files changed, 9 insertions(+), 3 deletions(-)

 policy 22.6 compliant mbox write locking

For NFS safety, prefer fcntl to dotlocks.
Dovecots default is the other way around.

Bug: #720502

dovecot_name.patch | (download)

configure.ac | 7 6 + 1 - 0 !
src/config/all-settings.c | 6 3 + 3 - 0 !
src/lib-smtp/smtp-server.c | 2 1 + 1 - 0 !
src/lmtp/lmtp-settings.c | 2 1 + 1 - 0 !
src/login-common/login-settings.c | 2 1 + 1 - 0 !
src/submission/submission-settings.c | 2 1 + 1 - 0 !
6 files changed, 13 insertions(+), 8 deletions(-)

 update dovecot name to include distribution in login greeting
 message

This patch was found at: https://blueprints.launchpad.net/ubuntu/+spec/servercloud-s-server-app-banner-updates
and originally provided by Ubuntu for their 2.1.7 package.  The original
author is  Yolanda Robla <yolanda.robla@canonical.com>.  I updated it
for Debian's 2.2.5 package.

ssl dh params location.patch | (download)

doc/example-config/conf.d/10-ssl.conf | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 set dh params location

skip rfc subdir.patch | (download)

pigeonhole/configure.ac | 1 0 + 1 - 0 !
pigeonhole/doc/Makefile.am | 1 0 + 1 - 0 !
pigeonhole/doc/Makefile.in | 1 0 + 1 - 0 !
3 files changed, 3 deletions(-)

 don't try to build doc/rfc subdir components

Correct misspellings.patch | (download)

ChangeLog | 6 3 + 3 - 0 !
NEWS | 2 1 + 1 - 0 !
pigeonhole/src/lib-sieve/sieve-address.c | 2 1 + 1 - 0 !
src/director/director-connection.c | 2 1 + 1 - 0 !
src/lib-index/mail-index-transaction-finish.c | 2 1 + 1 - 0 !
src/lib-index/mail-index.h | 2 1 + 1 - 0 !
src/lib-index/mail-transaction-log-file.c | 2 1 + 1 - 0 !
src/lib-storage/index/index-sync-pvt.c | 2 1 + 1 - 0 !
8 files changed, 10 insertions(+), 10 deletions(-)

 correct misspellings

Found by Lintian

test backtrace.patch | (download)

src/lib/test-backtrace.c | 12 7 + 5 - 0 !
1 file changed, 7 insertions(+), 5 deletions(-)

 updates the symbol to check for in the backtrace unit tests

Updates the symbol to check for in the backtrace unit tests to
something that appears in all the traces on the platforms we support.

Also dump the actual backtrace for debugging buildd failures.

doveadm director.1 drop acute accent.patch | (download)

doc/man/doveadm-director.1.in | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 doveadm-director.1: drop acute accent

Found by Lintian:

    This manual page uses the \' groff sequence. Usually, the intent to
    generate an apostrophe, but that sequence actually renders as a an acute
    accent.

    For an apostrophe or a single closing quote, use plain '. For single
    opening quote, i.e. a straight downward line ' like the one used in
    shell commands, use &#92;(aq.

Fix 32bit sign comparisons.patch | (download)

pigeonhole/src/lib-sieve/sieve-binary.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix 32bit sign comparisons

sieve-binary.c: In function 'sieve_binary_get_resource_usage':
Improve cross compile support.patch | (download)

m4/want_mysql.m4 | 54 26 + 28 - 0 !
src/lib-lua/Makefile.am | 4 1 + 3 - 0 !
2 files changed, 27 insertions(+), 31 deletions(-)

 improve cross-compile support

The check for the signedness of size_t really doesn't have to be run as
that is a compile time property.

Beyond that, dovecot uses mysql_config. I've looked into that and
mysql_config is unfixably broken during cross builds. It will not be
fixed. Instead, please use pkg-config. My patch implements that with a
fallback to mysql_config to avoid breaking other users.

Last but not least, src/lib-lua/Makefile.am adds $(LUA_LIBS) to
libdovecot_lua_la_DEPENDENCIES. As it happens, LUA_LIBS contains a -L
flag and when that flag shows up in a dependency, make gives up. I have
no clue why one would add LUA_LIBS to DEPENDENCIES as it already is
being correctly added to LIBADD. My patch suggests to quite simply drop
that.

Silence LTO related compiler warning.patch | (download)

src/lib-master/master-service-settings-cache.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 silence lto related compiler warning

master-service-settings-cache.c: In function 'master_service_settings_cache_init_filter':
master-service-settings-cache.c:94:3: warning: 'error' may be used uninitialized in this function [-Wmaybe-uninitialized]
   94 |   i_error("master-service: cannot get filters: %s", error);
      |   ^
master-service-settings-cache.c:89:14: note: 'error' was declared here
   89 |  const char *error;
      |              ^

md4 md5 disable optimization causing unaligned access.patch | (download)

src/lib/md4.c | 2 1 + 1 - 0 !
src/lib/md5.c | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 md4/md5: disable optimization causing unaligned access

This restores unit tests with GCC 11 and LTO.

    md5.c:92:23: warning: cast from 'const unsigned char *' to 'const uint32_t *' (aka 'const unsigned int *') increases required alignment from 1 to 4 [-Wcast-align]
                    STEP(F, a, b, c, d, SET(0), 0xd76aa478, 7)
                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    md5.c:51:4: note: expanded from macro 'SET'
            (*(const uint32_t *)&ptr[(n) * 4])
              ^
    md5.c:37:29: note: expanded from macro 'STEP'
            (a) += f((b), (c), (d)) + (x) + (t); \
                                       ^

    md5.c:92:3: runtime error: load of misaligned address 0x61900000008b for type 'const uint32_t' (aka 'const unsigned int'), which requires 4 byte alignment
    0x61900000008b: note: pointer points here
     41  41 41 41 41 41 41 41 41  41 41 41 41 41 41 41 41  41 41 41 41 41 41 41 41  41 41 41 41 41 41 41
                  ^

Support openssl 3.0.patch | (download)

src/lib-dcrypt/dcrypt-openssl.c | 20 20 + 0 - 0 !
1 file changed, 20 insertions(+)

 support openssl 3.0

Debug flaky unit test.patch | (download)

src/lib-smtp/test-smtp-server-errors.c | 12 9 + 3 - 0 !
1 file changed, 9 insertions(+), 3 deletions(-)

 debug flaky unit test

See #1007744

Avoid usage of PATH_MAX not available on hurd.patch | (download)

src/lib/test-net.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 avoid usage of path_max not available on hurd

auth Fix handling passdbs with identical driver args but .patch | (download)

src/auth/auth-request.c | 6 3 + 3 - 0 !
src/auth/auth.c | 18 18 + 0 - 0 !
src/auth/auth.h | 5 5 + 0 - 0 !
src/auth/passdb.c | 15 2 + 13 - 0 !
src/auth/passdb.h | 4 0 + 4 - 0 !
5 files changed, 28 insertions(+), 20 deletions(-)

 auth: fix handling passdbs with identical driver/args but different
 mechanisms/username_filter

The passdb was wrongly deduplicated in this situation, causing wrong
mechanisms or username_filter setting to be used. This would be a rather
unlikely configuration though.

Fixed by moving mechanisms and username_filter from struct passdb_module
to struct auth_passdb, which is where they should have been in the first
place.

auth Add a comment about updating userdb_find.patch | (download)

src/auth/userdb.c | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 auth: add a comment about updating userdb_find()


Fix uninitialized read in doveadm oldstats.patch | (download)

src/doveadm/doveadm-oldstats.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix uninitialized read in doveadm-oldstats

The third argument to doveadm_cmd_param_bool() is only set on a return
value of TRUE.
Since disk_input_field and disk_output_field should be set if the value
of show-disk-io is specified and specified to true, fix the condition.

    doveadm-oldstats.c: In function 'cmd_stats_top':
    doveadm-oldstats.c:551:63: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized]
      551 |         if (!doveadm_cmd_param_bool(cctx, "show-disk-io", &b) && b) {
          |                                                               ^
    doveadm-oldstats.c:545:14: note: 'b' was declared here
      545 |         bool b;
          |              ^

Use _FORTIFY_SOURCE level 3.patch | (download)

m4/dovecot.m4 | 6 3 + 3 - 0 !
pigeonhole/m4/dovecot.m4 | 6 3 + 3 - 0 !
2 files changed, 6 insertions(+), 6 deletions(-)

 use _fortify_source level 3

Cleanup temporary build files.patch | (download)

src/plugins/quota/Makefile.am | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 cleanup temporary build files

Silence prototype conflicts.patch | (download)

src/auth/db-lua.h | 7 4 + 3 - 0 !
src/lib-program-client/program-client.c | 4 2 + 2 - 0 !
2 files changed, 6 insertions(+), 5 deletions(-)

 silence prototype conflicts