Skip to content

Commit

Permalink
ssh: Use valid host name in test-sshbridge
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
martinpitt committed Dec 29, 2023
1 parent 65a034a commit 518d36c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ssh/test-sshbridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
Expand Down

0 comments on commit 518d36c

Please sign in to comment.