]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostname: accept an empty hostname to unset transient hostname
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Jan 2021 01:13:01 +0000 (10:13 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Jan 2021 06:40:26 +0000 (07:40 +0100)
commitf190ac486e34ac6b35ef8a54b3d8212c25de7821
tree48c307b32ce34dbae1cca8bb6afc4b897ea43e1e
parent3e405f28f4730dd0d530ef1ded1aa6ba81a113d3
hostname: accept an empty hostname to unset transient hostname

Follow-up for 60e4fb4240b24bdd2d4299d8d844f48093df8807.

Before 60e4fb4240b24bdd2d4299d8d844f48093df8807,
`hostnamectl --transient set-hostname ""` unsets the transient hostname.
But after the commit, it is refused. This fixes the issue.
src/hostname/hostnamed.c