From 621035704f4e6b2cb607f0dca46312abe54b0c54 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 1 Feb 2002 21:47:50 +0000 Subject: Fixes by Matthias Andree. svn path=/trunk/; revision=3571 --- env.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'env.c') diff --git a/env.c b/env.c index 93651a44..e69fea0f 100644 --- a/env.c +++ b/env.c @@ -66,6 +66,19 @@ void envquery(int argc, char **argv) exit(PS_UNDEFINED); } + if (getenv("NULLMAILER_FLAGS") && strcmp(getenv("NULLMAILER_FLAGS"), "")) + { + fprintf(stderr, + GT_("%s: The NULLMAILER_FLAGS environment variable is set.\n" + "This is dangerous as it can make nullmailer-inject +or nullmailer's\n" + "sendmail wrapper tamper with your From:, Message-ID: or Return-Path: headers.\n" + "Try \"env NULLMAILER_FLAGS= %s YOUR ARGUMENTS HERE\"\n" + "%s: Abort.\n"), + program_name, program_name, program_name); + exit(PS_UNDEFINED); + } + if (!(pwp = getpwuid(getuid()))) { fprintf(stderr, -- cgit v1.2.3