projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d247a6
)
resolved: when outputting RRs in text form, append a trailing dot to owner names
author
Lennart Poettering
<lennart@poettering.net>
Wed, 9 Dec 2015 16:29:53 +0000
(17:29 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 10 Dec 2015 10:28:01 +0000
(11:28 +0100)
After all, that's how this is done in DNS, and is particularly important
if we look a DS/DNSKEY RRs for the root zone itself, where the owner
name would otherwise be shown as completely empty (i.e. missing).
src/resolve/resolved-dns-rr.c
patch
|
blob
|
history
diff --git
a/src/resolve/resolved-dns-rr.c
b/src/resolve/resolved-dns-rr.c
index
260a2a3
..
c766799
100644
(file)
--- a/
src/resolve/resolved-dns-rr.c
+++ b/
src/resolve/resolved-dns-rr.c
@@
-309,7
+309,7
@@
int dns_resource_key_to_string(const DnsResourceKey *key, char **ret) {
t = tbuf;
}
- if (asprintf(&s, "%s %s %-5s", DNS_RESOURCE_KEY_NAME(key), c, t) < 0)
+ if (asprintf(&s, "%s
.
%s %-5s", DNS_RESOURCE_KEY_NAME(key), c, t) < 0)
return -ENOMEM;
*ret = s;