Commit Diff
Diff:
59eb907ffc90be31da9ff4e7c0053478325e8125
6fcedbcce90255dd6fb66e9f865613b6f11ab415
Commit:
6fcedbcce90255dd6fb66e9f865613b6f11ab415
Tree:
7b758b97bc08ec93c5ccd1082391ac0e21fd7974
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Sun Jul 26 14:03:50 2020 UTC
Message:
fix bindfile HINFO output
blob - d777b07fae2d04a6605b6641061acdc8b39052cc
blob + e0fc726639a5e17359bdbef3cd4d7b4cacef3e72
--- dddctl.c
+++ dddctl.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: dddctl.c,v 1.114 2020/07/23 10:48:45 pjp Exp $
+ * $Id: dddctl.c,v 1.115 2020/07/26 14:03:50 pjp Exp $
*/
#include <sys/types.h>
@@ -867,18 +867,18 @@ print_rbt_bind(FILE *of, struct rbtree *rbt)
return -1;
}
TAILQ_FOREACH(rrp2, &rrset->rr_head, entries) {
- fprintf(of, "%s %d IN HINFO ",
+ fprintf(of, "%s %d IN HINFO \"",
convert_name(rbt->zone, rbt->zonelen),
rrset->ttl);
for (i = 0; i < ((struct hinfo *)rrp2->rdata)->cpulen; i++) {
fprintf(of, "%c", ((struct hinfo *)rrp2->rdata)->cpu[i]);
}
- fprintf(of, " ");
+ fprintf(of, "\" \"");
for (i = 0; i < ((struct hinfo *)rrp2->rdata)->oslen; i++) {
fprintf(of, "%c", ((struct hinfo *)rrp2->rdata)->os[i]);
}
- fprintf(of, "\n");
+ fprintf(of, "\"\n");
}
}
if ((rrset = find_rr(rbt, DNS_TYPE_TXT)) != NULL) {
repomaster@centroid.eu