[systemd-bugs] [Bug 83930] hostnamed should emit PropertyChanged for Hostname property

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 17 02:08:16 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=83930

--- Comment #3 from David Herrmann <dh.herrmann at gmail.com> ---
(In reply to comment #2)
> I only now noticed that gethostname will not always correspond to the
> Hostname property, at least since c779a442 (released with v213)... Should
> hostnamed maybe have one more property EffectiveHostname that is guaranteed
> to have the same value as gethostname?

We never expose systemd/bus APIs if there is already an API to retrieve the
given value. That is, our recommendation is to *always* use gethostname() if
you require the effective hostname of your system.

We enforce this policy in quite a lot places, and so far there hasn't been any
reason to change this.

> How can things like the hostname be so complicated? :-)

Yeah.. auto-configuration via DHCP makes stuff awfully complicated. What can we
do..

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140917/4e8ebcbd/attachment.html>


More information about the systemd-bugs mailing list