From: kremlin Date: Mon, 25 Aug 2014 01:47:58 +0000 (-0500) Subject: add get_bsd_hostname() and has_domain() X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systembsd.git;a=commitdiff_plain;h=df8fc34169ec6b61b9695700e61687b27ad89958;hp=df8fc34169ec6b61b9695700e61687b27ad89958 add get_bsd_hostname() and has_domain() 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. ---