Systemd/src/hostname
Stef Walter c779a44222 hostnamed: Fix the way that static and transient host names interact
It is almost always incorrect to allow DHCP or other sources of
transient host names to override an explicitly configured static host
name.

This commit changes things so that if a static host name is set, this
will override the transient host name (eg: provided via DHCP). Transient
host names can still be used to provide host names for machines that have
not been explicitly configured with a static host name.

The exception to this rule is if the static host name is set to
"localhost". In those cases we act as if no
static host name has been explicitly set.

As discussed elsewhere, systemd may want to have an fd based ownership
of the transient name. That part is not included in this commit.
2014-05-28 09:34:37 +08:00
..
.gitignore login: move seat udev rules to login subdir 2012-01-22 18:32:13 +01:00
hostnamectl.c shared: rename hwclock.[ch] to clock-util.[ch] 2014-05-24 07:56:20 +09:00
hostnamed.c hostnamed: Fix the way that static and transient host names interact 2014-05-28 09:34:37 +08:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
org.freedesktop.hostname1.conf relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
org.freedesktop.hostname1.policy.in polkit: add "imply" rules to a number of polkit actions 2012-12-31 21:24:26 +01:00
org.freedesktop.hostname1.service relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00