diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-07-27 22:30:06 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-08-05 20:49:21 -0400 |
commit | 17eb9a9ddba3f03fcba33445c1c1eedeb948da04 (patch) | |
tree | ae0768463007ff944dc0e3bfb2def4e005ce0be3 /src/basic/hostname-util.c | |
parent | 79f17ea6f8d885da063f50d966891adaee236b26 (diff) |
hostnamectl: allow trailing dot on fqdn
When the user requests to set hostname, and we are setting both
pretty and static hostnames, and the name is a valid FQDN, we
use it as the static hostname, and unset the pretty hostname.
The change is that a FQDN with a trailing dot is accepted and ignored.
https://bugzilla.redhat.com/show_bug.cgi?id=1238246
Lowercasing of the static name is not done anymore.
$ hostnamectl set-hostname Foobar.
=> static is "Foobar", pretty is "Foobar."
$ hostnamectl set-hostname Foobar.org.
=> static is "Foobar.org", pretty is unset
$ hostnamectl set-hostname Foobar.org..
=> static is "Foobar.org", pretty is "Foobar.org.."
Diffstat (limited to 'src/basic/hostname-util.c')
0 files changed, 0 insertions, 0 deletions