From 518d36c349202052578a459872c3657760226648 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 29 Dec 2023 07:12:11 +0100 Subject: [PATCH] ssh: Use valid host name in test-sshbridge libssh 0.10.6 made host name parsing stricter. `some_host` is not a valid general host name, and is rejected with the latest version. --- src/ssh/test-sshbridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssh/test-sshbridge.c b/src/ssh/test-sshbridge.c index e0ff9a7a909d..9c561e29aa4f 100644 --- a/src/ssh/test-sshbridge.c +++ b/src/ssh/test-sshbridge.c @@ -323,7 +323,7 @@ setup (TestCase *tc, if (!fixture->knownhosts_home) g_assert_cmpint (mkdir (tc->home_ssh_dir, 0700), ==, 0); - g_string_append (content, "Host some_host\n"); + g_string_append (content, "Host somehost\n"); g_string_append_printf (content, "\tHostname %s\n", hostname); if (fixture->ssh_config_port == PORT_VALID) @@ -346,7 +346,7 @@ setup (TestCase *tc, if (fixture->ssh_config_user == USER_INVALID_HOST_PRIORITY) g_string_append_printf (new_host, "%s@", g_get_user_name ()); /* Host in the ssh config file */ - g_string_append (new_host, "some_host"); + g_string_append (new_host, "somehost"); /* The port in host should take priority over the port in ssh config */ if (fixture->ssh_config_port == PORT_INVALID_HOST_PRIORITY) g_string_append_printf (new_host, ":%hu", tc->ssh_port);