mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 06:26:12 -04:00
25 lines
674 B
Plaintext
25 lines
674 B
Plaintext
$NetBSD: patch-ah,v 1.4 2012/06/09 11:45:38 adam Exp $
|
|
|
|
--- courier/module.local/deliver.c.orig 2006-05-28 11:29:52.000000000 -0400
|
|
+++ courier/module.local/deliver.c
|
|
@@ -648,7 +648,7 @@ static int docommand(const char *extensi
|
|
const char *defaultmail,
|
|
int recursion_level)
|
|
{
|
|
-char *envs[19];
|
|
+char *envs[20];
|
|
const char *p;
|
|
const char *hostp;
|
|
pid_t pid;
|
|
@@ -740,7 +740,9 @@ const char *shell=getenv("SHELL");
|
|
envs[17]=courier_malloc(strlen(shell)
|
|
+sizeof("SHELL="));
|
|
strcat(strcpy(envs[17], "SHELL="), shell);
|
|
- envs[18]=0;
|
|
+ envs[18]=courier_malloc(sizeof("COURIER_MTA="));
|
|
+ strcpy(envs[18], "COURIER_MTA=");
|
|
+ envs[19]=0;
|
|
|
|
if (*command == '|')
|
|
{
|