chiark / gitweb /
util: introduce sethostname_idempotent
authorMichal Sekletar <msekleta@redhat.com>
Tue, 21 Oct 2014 16:17:54 +0000 (18:17 +0200)
committerMichal Sekletar <msekleta@redhat.com>
Mon, 27 Oct 2014 09:37:46 +0000 (10:37 +0100)
commit605f81a8968b2df8a28cca2cf11db99ab948a2af
tree5f7bc76ca61e8165860510ee181c57ecbfdd3055
parentcaa2f4c0c9613b2e02aafa308c8fb092576014a9
util: introduce sethostname_idempotent

Function queries system hostname and applies changes only when necessary. Also,
migrate all client of sethostname to sethostname_idempotent while at it.
src/core/hostname-setup.c
src/hostname/hostnamed.c
src/nspawn/nspawn.c
src/shared/util.c
src/shared/util.h