diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-12-15 21:14:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 21:14:01 +0100 |
commit | 94b78105c6f93dfe17b4353356227a0baf86f1fe (patch) | |
tree | 7c51f75a12b78a4641ade43a621bfa813aa404a6 /src/libsystemd-network/sd-dhcp-client.c | |
parent | 6fe2a70b9160e35fdeed9d37bd31727c2d46a8b2 (diff) | |
parent | 1ecb46724cae151606bc825f0e39f14d4dfe1a0e (diff) | |
download | systemd-94b78105c6f93dfe17b4353356227a0baf86f1fe.tar.gz |
Merge pull request #17967 from poettering/connect-user-bus
add support for "systemctl --user --machine=foobar@.host" for connecting to user bus of user "foobar"
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-client.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c index c3b51c0d0f..0c2eb91ae3 100644 --- a/src/libsystemd-network/sd-dhcp-client.c +++ b/src/libsystemd-network/sd-dhcp-client.c @@ -544,7 +544,7 @@ int sd_dhcp_client_set_hostname( /* Make sure hostnames qualify as DNS and as Linux hostnames */ if (hostname && - !(hostname_is_valid(hostname, false) && dns_name_is_valid(hostname) > 0)) + !(hostname_is_valid(hostname, 0) && dns_name_is_valid(hostname) > 0)) return -EINVAL; return free_and_strdup(&client->hostname, hostname); |