hostname-util: drop GET_HOSTNAME_ALLOW_NONE flag and always refuse "(none)"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 30 Dec 2021 18:56:59 +0000 (03:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 30 Dec 2021 19:05:38 +0000 (04:05 +0900)
commit9383fa08bd263277d9a17a8999c3497458f273e3
tree4a49e935e3565bdc4c0ecb63b88f0f92011bf392
parentd8d6b2275f7b7a5b58c6b0d89b78c927333c6af9
hostname-util: drop GET_HOSTNAME_ALLOW_NONE flag and always refuse "(none)"

The flag is now only used in test-sysctl-util.c, and it should be
replaced with uname(), because of the same reason as the previous
commit.
src/basic/hostname-util.c
src/basic/hostname-util.h
src/test/test-sysctl-util.c