mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
mail-mta/exim-4.94-r1: fix PAM expansion, bug #727310
Closes: https://bugs.gentoo.org/727310 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
@@ -114,6 +114,7 @@ src_prepare() {
|
||||
eapply -p0 "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591
|
||||
eapply "${FILESDIR}"/exim-4.69-r1.27021.patch
|
||||
eapply "${FILESDIR}"/exim-4.94-localscan_dlopen.patch
|
||||
eapply -p2 "${FILESDIR}"/exim-4.94-taint-pam-expansion.patch # drop on NR
|
||||
|
||||
if use maildir ; then
|
||||
eapply "${FILESDIR}"/exim-4.94-maildir.patch
|
||||
35
mail-mta/exim/files/exim-4.94-taint-pam-expansion.patch
Normal file
35
mail-mta/exim/files/exim-4.94-taint-pam-expansion.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
From f7f933a199be8bb7362c715e0040545b514cddca Mon Sep 17 00:00:00 2001
|
||||
From: Jeremy Harris <jgh146exb@wizmail.org>
|
||||
Date: Tue, 2 Jun 2020 14:50:31 +0100
|
||||
Subject: [PATCH] Taint: fix pam expansion condition. Bug 2587
|
||||
|
||||
---
|
||||
doc/doc-txt/ChangeLog | 5 +++++
|
||||
src/src/auths/call_pam.c | 5 ++---
|
||||
2 files changed, 7 insertions(+), 3 deletions(-)
|
||||
|
||||
modified for gentoo so the patch applies by dropping Changelog part
|
||||
|
||||
diff --git a/src/src/auths/call_pam.c b/src/src/auths/call_pam.c
|
||||
index 2959cbbf3..80bb23ec3 100644
|
||||
--- a/src/src/auths/call_pam.c
|
||||
+++ b/src/src/auths/call_pam.c
|
||||
@@ -83,8 +83,7 @@ for (int i = 0; i < num_msg; i++)
|
||||
{
|
||||
case PAM_PROMPT_ECHO_ON:
|
||||
case PAM_PROMPT_ECHO_OFF:
|
||||
- arg = string_nextinlist(&pam_args, &sep, big_buffer, big_buffer_size);
|
||||
- if (!arg)
|
||||
+ if (!(arg = string_nextinlist(&pam_args, &sep, NULL, 0)))
|
||||
{
|
||||
arg = US"";
|
||||
pam_arg_ended = TRUE;
|
||||
@@ -155,7 +154,7 @@ pam_arg_ended = FALSE;
|
||||
fail. PAM doesn't support authentication with an empty user (it prompts for it,
|
||||
causing a potential mis-interpretation). */
|
||||
|
||||
-user = string_nextinlist(&pam_args, &sep, big_buffer, big_buffer_size);
|
||||
+user = string_nextinlist(&pam_args, &sep, NULL, 0);
|
||||
if (user == NULL || user[0] == 0) return FAIL;
|
||||
|
||||
/* Start off PAM interaction */
|
||||
Reference in New Issue
Block a user