summaryrefslogtreecommitdiff
path: root/src/ssh.c
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2022-11-26 17:34:24 +0900
committerRyo Nakamura <upa@haeena.net>2022-11-26 17:34:24 +0900
commit8cc964ca8a4457dab26d157433d2519b15590799 (patch)
treec73d970674f0c8072b2921cff2229e6d4a50ade3 /src/ssh.c
parente0fe88c9c421ead606cf5ebed9e14d3584fb846e (diff)
fix duplicate error message on ssh auth failed.
and fix the final \n with -q
Diffstat (limited to 'src/ssh.c')
-rw-r--r--src/ssh.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ssh.c b/src/ssh.c
index f5f737a..48e72f4 100644
--- a/src/ssh.c
+++ b/src/ssh.c
@@ -80,11 +80,10 @@ static int ssh_authenticate(ssh_session ssh, struct ssh_opts *opts)
return 0;
}
- pr_err("authentication failure: %s\n", ssh_get_error(ssh));
return -1;
}
-static ssh_session ssh_make_ssh_session(char *sshdst, struct ssh_opts *opts)
+static ssh_session ssh_init_session(char *sshdst, struct ssh_opts *opts)
{
ssh_session ssh = ssh_new();
@@ -119,10 +118,10 @@ free_out:
return NULL;
}
-sftp_session ssh_make_sftp_session(char *sshdst, struct ssh_opts *opts)
+sftp_session ssh_init_sftp_session(char *sshdst, struct ssh_opts *opts)
{
sftp_session sftp;
- ssh_session ssh = ssh_make_ssh_session(sshdst, opts);
+ ssh_session ssh = ssh_init_session(sshdst, opts);
if (!ssh) {
return NULL;