Systemd/src
Zbigniew Jędrzejewski-Szmek 17eb9a9ddb 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.."
2015-08-05 20:49:21 -04:00
..
ac-power
activate tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +02:00
analyze sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
ask-password remove unused includes 2015-02-23 23:53:42 +01:00
backlight fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
basic hostname-util: add relax parameter to hostname_is_valid 2015-08-05 20:49:20 -04:00
binfmt tree-wide: fix write_string_file() user that should not create files 2015-07-06 19:27:20 -04:00
boot systemd-boot: fix whitespace 2015-07-26 00:38:01 +02:00
bootchart bootchart: fix negative 'timeleft' condition 2015-07-21 18:37:06 +02:00
bus-proxyd proxyd: downgrade to log_debug() for unmatched broadcasts 2015-07-25 14:12:39 +02:00
cgls cgls: machines can also be services 2015-07-22 17:53:14 -04:00
cgroups-agent sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
cgtop cgtop: include missing signal.h for sigwinch 2015-07-17 10:39:06 +02:00
compat-libs #pragma once here and there 2015-01-23 09:30:44 -05:00
console everywhere: port everything to sigprocmask_many() and friends 2015-06-15 20:13:23 +02:00
core automount: handle state changes of the corresponding mount unit correctly 2015-07-24 22:30:26 +02:00
cryptsetup cryptsetup: craft a unique ID with the source device 2015-06-09 10:17:55 +02:00
dbus1-generator bus: don't switch to kdbus if not requested 2015-05-06 18:21:51 +02:00
debug-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
delta tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +02:00
detect-virt remove unused includes 2015-02-23 23:53:42 +01:00
efi-boot-generator path-util: Change path_is_mount_point() symlink arg from bool to flags 2015-05-29 17:42:44 +02:00
escape escape: fix exit code 2015-07-01 23:46:42 -07:00
firstboot firstboot: allow a trailing dot on fqdn 2015-08-05 20:49:20 -04:00
fsck sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
fstab-generator swap: use swapon -o 2015-05-25 17:06:15 +02:00
getty-generator core: rework unit name validation and manipulation logic 2015-05-05 15:06:42 -07:00
gpt-auto-generator fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
hibernate-resume fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
hostname hostnamectl: allow trailing dot on fqdn 2015-08-05 20:49:21 -04:00
hwdb Revert "hwdb: actually search /run/udev/hwdb.d" 2015-06-09 11:26:06 +02:00
import hostname-util: add relax parameter to hostname_is_valid 2015-08-05 20:49:20 -04:00
initctl shared: add formats-util.h 2015-04-10 23:54:48 +02:00
journal tree-wide: do not use _cleanup_free_ on const pointers 2015-07-24 13:52:30 +02:00
journal-remote journal-gatewayd: fix tmpfile logic 2015-07-07 17:21:27 -04:00
kernel-install 90-loaderentry.install: fixup BOOT_OPTIONS 2015-06-02 16:10:06 +02:00
libsystemd netlink-types: use consistent whitespace at EOL 2015-07-24 23:43:51 -04:00
libsystemd-network hostname-util: add relax parameter to hostname_is_valid 2015-08-05 20:49:20 -04:00
libsystemd-terminal treewide: fix typos of let's 2015-07-06 20:09:54 -04:00
libudev libudev: device - fix typo in udev_device_get_sysattr_list_entry() 2015-06-17 22:03:34 +02:00
locale hostname-util: add relax parameter to hostname_is_valid 2015-08-05 20:49:20 -04:00
login logind: fix write_string_file() fallout 2015-07-21 15:58:59 +02:00
machine nss-mymachines: map userns users of containers to real user names 2015-07-09 14:46:20 -03:00
machine-id-commit machine-id-commit: simplifications 2015-03-10 18:56:56 +01:00
machine-id-setup remove unused includes 2015-02-23 23:53:42 +01:00
modules-load modules-load: fix memory leak 2015-05-13 14:07:26 +02:00
network networkd: allow trailing dot on fqdn in config file 2015-08-05 20:49:20 -04:00
notify shared: add formats-util.h 2015-04-10 23:54:48 +02:00
nspawn nspawn: Don't pass uid mount option for devpts 2015-07-22 22:34:57 -04:00
nss-myhostname util: split all hostname related calls into hostname-util.c 2015-05-18 17:10:07 +02:00
nss-mymachines nss-mymachines: map userns users of containers to real user names 2015-07-09 14:46:20 -03:00
nss-resolve sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
path tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
quotacheck tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +02:00
random-seed random-seed: minor cleanups, in particular when it comes to logging 2015-04-21 18:08:09 +02:00
rc-local-generator
remount-fs tree-wide: whenever we fork off a foreign child process reset signal mask/handlers 2015-06-10 01:28:58 +02:00
reply-password remove unused includes 2015-02-23 23:53:42 +01:00
resolve resolved: fix DNS_TYPE_ANY vs DNS_CLASS_ANY confusion 2015-07-24 19:54:00 +02:00
resolve-host resolve-host: enable dbus-activation 2015-07-09 11:47:43 +02:00
rfkill fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
run sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
shared Merge pull request #537 from poettering/nss-mymachines-userns 2015-07-23 09:53:47 +02:00
sleep fileio: consolidate write_string_file*() 2015-07-06 19:19:25 -04:00
socket-proxy remove unused includes 2015-02-23 23:53:42 +01:00
sysctl sysctl: don't propagate ENOENT sysctl options 2015-04-24 19:56:47 +02:00
system-update-generator remove unused includes 2015-02-23 23:53:42 +01:00
systemctl sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
systemd sd-bus: remove _VTABLE from new method vtable initialiser 2015-07-24 22:59:19 +10:00
sysusers util: add generic calls for prefixing a root directory to a path 2015-05-13 17:42:10 +02:00
sysv-generator sysv-generator: fix coding-style 2015-07-01 13:02:58 +02:00
test hostname-util: add relax parameter to hostname_is_valid 2015-08-05 20:49:20 -04:00
timedate sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
timesync build-sys: add all source files and no built files to the tar ball 2015-06-23 12:43:15 +02:00
tmpfiles tmpfiles: downgrade errors when a file system does not support file attributes 2015-07-22 22:02:14 +02:00
tty-ask-password-agent everywhere: port everything to sigprocmask_many() and friends 2015-06-15 20:13:23 +02:00
udev ata_id: remove unused union member 2015-07-25 00:14:13 +02:00
update-done update-done: ignore nanosecond file timestamp components, they are not reliable 2015-04-27 17:25:57 +02:00
update-utmp shared: add formats-util.h 2015-04-10 23:54:48 +02:00
user-sessions user-sessions: fix write_string_file() fallout 2015-07-21 15:59:02 +02:00
vconsole tree-wide: fix write_string_file() user that should not create files 2015-07-06 19:27:20 -04:00
.gitignore
Makefile