diff options
author | Heiko Schlittermann (HS12) <hs@schlittermann.de> | 2015-05-12 22:01:08 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12) <hs@schlittermann.de> | 2015-05-12 22:01:08 +0200 |
commit | 5f3d09836c17cb80a1953196c98371ed70396903 (patch) | |
tree | f52637d9897205d92c836eb2c9c75638276fb708 /src | |
parent | ded5de1587888a66a86aa02549098c8821bd8efb (diff) |
Testsuite: locate fakens relative to the config_main_directory
This makes the test configs more intuitive, because the
spool_directory=SPOOL/spool does not need to be there anymore,
except we really need a spool directory.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/dns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/src/dns.c b/src/src/dns.c index 24f3522c7..f19d23b4c 100644 --- a/src/src/dns.c +++ b/src/src/dns.c @@ -81,8 +81,8 @@ if (len >= 13 && Ustrcmp(endname - 13, "test.fail.dns") == 0) /* Look for the fakens utility, and if it exists, call it. */ -(void)string_format(utilname, sizeof(utilname), "%s/../bin/fakens", - spool_directory); +(void)string_format(utilname, sizeof(utilname), "%s/bin/fakens", + config_main_directory); if (stat(CS utilname, &statbuf) >= 0) { @@ -90,11 +90,11 @@ if (stat(CS utilname, &statbuf) >= 0) int infd, outfd, rc; uschar *argv[5]; - DEBUG(D_dns) debug_printf("DNS lookup of %s (%s) using fakens\n", - name, dns_text_type(type)); + DEBUG(D_dns) debug_printf("DNS lookup of %s (%s) using fakens `%s'\n", + name, dns_text_type(type), utilname); argv[0] = utilname; - argv[1] = spool_directory; + argv[1] = config_main_directory; argv[2] = name; argv[3] = dns_text_type(type); argv[4] = NULL; |