ae36af4c9f
Not enabled by default yet. Enables dumping of dns traffic. Fix DNSTAP issues in build and unit tests. Fool rpmlint to accept dnstap relative path. Rpmlint emited error hardcoded-library-path on dnstap path. It is not system-wide library, workaround by using variable. Add dnstap-read utility to utils. When dnstap is enabled, dnstap-read will be part of utils. Disadvantage is all utilities would have dependency on protobuf library, including host and dig. Resolves: #1564776
25 lines
754 B
Diff
25 lines
754 B
Diff
diff --git a/lib/dns/tests/dnstap_test.c b/lib/dns/tests/dnstap_test.c
|
|
index 56e3da4..1f31542 100644
|
|
--- a/lib/dns/tests/dnstap_test.c
|
|
+++ b/lib/dns/tests/dnstap_test.c
|
|
@@ -297,6 +297,9 @@ ATF_TC_BODY(totext, tc) {
|
|
|
|
UNUSED(tc);
|
|
|
|
+ /* make sure text conversion gets the right local time */
|
|
+ setenv("TZ", "PST8", 1);
|
|
+
|
|
result = dns_test_begin(NULL, true);
|
|
ATF_REQUIRE(result == ISC_R_SUCCESS);
|
|
|
|
@@ -306,9 +309,6 @@ ATF_TC_BODY(totext, tc) {
|
|
result = isc_stdio_open(TAPTEXT, "r", &fp);
|
|
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
|
|
|
|
- /* make sure text conversion gets the right local time */
|
|
- setenv("TZ", "PST8", 1);
|
|
-
|
|
while (dns_dt_getframe(handle, &data, &dsize) == ISC_R_SUCCESS) {
|
|
dns_dtdata_t *dtdata = NULL;
|
|
isc_buffer_t *b = NULL;
|