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/firstboot/firstboot.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/firstboot/firstboot.c')
-rw-r--r-- | src/firstboot/firstboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index 742b43f9fc..afead11b42 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -493,7 +493,7 @@ static int prompt_hostname(void) { break; } - if (!hostname_is_valid(h, true)) { + if (!hostname_is_valid(h, VALID_HOSTNAME_TRAILING_DOT)) { log_error("Specified hostname invalid."); continue; } @@ -1135,15 +1135,15 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_HOSTNAME: - if (!hostname_is_valid(optarg, true)) + if (!hostname_is_valid(optarg, VALID_HOSTNAME_TRAILING_DOT)) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Host name %s is not valid.", optarg); - hostname_cleanup(optarg); r = free_and_strdup(&arg_hostname, optarg); if (r < 0) return log_oom(); + hostname_cleanup(arg_hostname); break; case ARG_MACHINE_ID: |