add get_bsd_hostname() and has_domain()
authorkremlin <kremlin@juliana.home.network>
Mon, 25 Aug 2014 01:47:58 +0000 (20:47 -0500)
committerkremlin <kremlin@juliana.home.network>
Mon, 25 Aug 2014 01:47:58 +0000 (20:47 -0500)
get_bsd_hostname takes a string and returns a proper FQDN to be
written to /etc/myname or NULL if the passed string is unsalvagable.
if passed string does not contain a domain, the current domain from
/etc/myname is used. if /etc/myname does not contain a trailing
domain, an error message is printed and the default (".home.network")
is used.


No differences found