]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostname-util: add relax parameter to hostname_is_valid
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Jul 2015 02:15:26 +0000 (22:15 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Aug 2015 00:49:20 +0000 (20:49 -0400)
commit8fb494435889dcb9e1c09b8c7220e47bab717bf9
tree68685a2da5e072996a37e491c1fab61aacf0ccce
parentbaee30afce50b611724e6c6a4ca61a4469b11d9d
hostname-util: add relax parameter to hostname_is_valid

Tests are modified to check behaviour with relax and without relax.
New tests are added for hostname_cleanup().
Tests are moved a new file (test-hostname-util) because there's
now a bunch of them.

New parameter is not used anywhere, except in tests, so there should
be no observable change.
14 files changed:
.gitignore
Makefile.am
src/basic/hostname-util.c
src/basic/hostname-util.h
src/basic/util.c
src/basic/util.h
src/firstboot/firstboot.c
src/hostname/hostnamed.c
src/import/pull-dkr.c
src/libsystemd-network/sd-dhcp-lease.c
src/locale/localed.c
src/network/networkd-network.c
src/test/test-hostname-util.c [new file with mode: 0644]
src/test/test-util.c