networkd: rework how we set the hostname on the dhcp4 client
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Nov 2016 12:02:57 +0000 (13:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 Nov 2016 21:47:47 +0000 (22:47 +0100)
commit7192bb81bd99108287db82d6140d5329086b0da2
tree87c2959504b7d031995b00f7f1a5f541e4bb43f5
parent17f6ed4d5956f4e74056ae976b638dbba33c2844
networkd: rework how we set the hostname on the dhcp4 client

Let's split out the code into its own little function and let's use
gethostname_strict() which already filters out localhost for us.
src/network/networkd-dhcp4.c