chiark / gitweb /
hostname-util: default to the compile time default hostname in gethostname_malloc()
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Feb 2017 11:02:17 +0000 (12:02 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commitad9e7bc1ae797e9ca4cc02916ddc0a2dbba85173
tree030673e88409ef6a8135570c2ffc457c0fceba3b
parentc215fdfe0ea740def6e63c999e1dc9431c8b68b5
hostname-util: default to the compile time default hostname in gethostname_malloc()

Currently, if the hostname is not set gethostname_malloc() defaults to
the "sysname", which is "linux" on Linux. Let's change that to also
honour the compile-time fallback hostname as specified on the configure
command line.
src/basic/hostname-util.c