]> granicus.if.org Git - neomutt/commit
Improve method of determining FQDN. (closes #3298)
authorDerek Martin <code@pizzashack.org>
Tue, 8 Mar 2016 21:12:02 +0000 (13:12 -0800)
committerDerek Martin <code@pizzashack.org>
Tue, 8 Mar 2016 21:12:02 +0000 (13:12 -0800)
commit0aeb67b0893ff3afcc064778b8f30cd72f3c9d5e
tree237dea15fe8b0b83dc84f16b09b8cac9978026d8
parent6978d7328e4e0227b6413b85c5213709da6d574d
Improve method of determining FQDN. (closes #3298)

Rather than reading /etc/resolv.conf, use gethostname() and
getaddrinfo() to get the canonical domain.

Thanks to Vincent Lefèvre for the memory leak fix.
getdomain.c
init.c