diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-02-01 21:47:50 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-02-01 21:47:50 +0000 |
commit | 621035704f4e6b2cb607f0dca46312abe54b0c54 (patch) | |
tree | d621f9e5aba156ee381370c0df4cc7660a2d2e47 /env.c | |
parent | 5ef9c343fc4b219f01498be7c88e1fdae67c35ee (diff) | |
download | fetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.tar.gz fetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.tar.bz2 fetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.zip |
Fixes by Matthias Andree.
svn path=/trunk/; revision=3571
Diffstat (limited to 'env.c')
-rw-r--r-- | env.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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, |