From a12e0a030a0321dcd83cc2bebd4d414ba4566426 Mon Sep 17 00:00:00 2001 From: halex Date: Sun, 25 Nov 2012 00:58:38 +0000 Subject: [PATCH] missing file from last commit --- .../patches/patch-src_auth_passdb-bsdauth_c | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 mail/dovecot/patches/patch-src_auth_passdb-bsdauth_c diff --git a/mail/dovecot/patches/patch-src_auth_passdb-bsdauth_c b/mail/dovecot/patches/patch-src_auth_passdb-bsdauth_c new file mode 100644 index 00000000000..d7796de8e00 --- /dev/null +++ b/mail/dovecot/patches/patch-src_auth_passdb-bsdauth_c @@ -0,0 +1,21 @@ +$OpenBSD: patch-src_auth_passdb-bsdauth_c,v 1.3 2012/11/25 00:58:38 halex Exp $ +--- src/auth/passdb-bsdauth.c.orig Sun Feb 12 17:55:54 2012 ++++ src/auth/passdb-bsdauth.c Mon Oct 29 22:42:37 2012 +@@ -18,6 +18,7 @@ bsdauth_verify_plain(struct auth_request *request, con + verify_plain_callback_t *callback) + { + struct passwd pw; ++ const char *type; + int result; + + auth_request_log_debug(request, "bsdauth", "lookup"); +@@ -35,7 +36,8 @@ bsdauth_verify_plain(struct auth_request *request, con + } + + /* check if the password is valid */ +- result = auth_userokay(request->user, NULL, NULL, ++ type = t_strdup_printf("auth-%s", request->service); ++ result = auth_userokay(request->user, NULL, t_strdup_noconst(type), + t_strdup_noconst(password)); + + /* clear the passwords from memory */