From 34e86e2003d0eba915735853cf48c56e71d7a4ea Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Sat, 26 Mar 2016 01:13:29 +0100 Subject: Supress TLS/Env warnings in checking and listing mode --- src/src/exim.c | 30 ++++++++++++++++++++++++------ src/src/functions.h | 2 +- src/src/readconf.c | 12 ++++++------ test/log/0615 | 6 ------ test/stderr/0615 | 11 ----------- 5 files changed, 31 insertions(+), 30 deletions(-) delete mode 100644 test/log/0615 delete mode 100644 test/stderr/0615 diff --git a/src/src/exim.c b/src/src/exim.c index 6a4fb5af3..cc3172dc0 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -1999,7 +1999,7 @@ for (i = 1; i < argc; i++) else if (*argrest == 'F') { - filter_test |= FTEST_SYSTEM; + filter_test |= checking = FTEST_SYSTEM; if (*(++argrest) != 0) { badarg = TRUE; break; } if (++i < argc) filter_test_sfile = argv[i]; else { @@ -2019,7 +2019,7 @@ for (i = 1; i < argc; i++) { if (*(++argrest) == 0) { - filter_test |= FTEST_USER; + filter_test |= checking = FTEST_USER; if (++i < argc) filter_test_ufile = argv[i]; else { fprintf(stderr, "exim: file name expected after %s\n", argv[i-1]); @@ -2094,6 +2094,7 @@ for (i = 1; i < argc; i++) else if (Ustrcmp(argrest, "malware") == 0) { if (++i >= argc) { badarg = TRUE; break; } + checking = TRUE; malware_test_file = argv[i]; } @@ -2175,6 +2176,7 @@ for (i = 1; i < argc; i++) else if (Ustrcmp(argrest, "rt") == 0) { + checking = TRUE; test_retry_arg = i + 1; goto END_ARG; } @@ -2183,6 +2185,7 @@ for (i = 1; i < argc; i++) else if (Ustrcmp(argrest, "rw") == 0) { + checking = TRUE; test_rewrite_arg = i + 1; goto END_ARG; } @@ -3754,7 +3757,23 @@ if ((initial_cwd = os_getcwd(NULL, 0)) == NULL) exit(EXIT_FAILURE); } -readconf_main(); +/* checking: + -be[m] expansion test - + -b[fF] filter test new + -bh[c] host test - + -bmalware malware_test_file new + -brt retry test new + -brw rewrite test new + -bt address test - + -bv[s] address verify - + list_options: + -bP