mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
Fix percent expand character %d to home directory
Fixes: #349 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Pavol Žáčik <pzacik@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -100,13 +100,10 @@ static int session_setup(void **state)
|
||||
static int session_setup_ssh_dir(void **state)
|
||||
{
|
||||
struct torture_state *s = *state;
|
||||
const char *no_home = "~/.no_ssh";
|
||||
int rc;
|
||||
|
||||
session_setup(state);
|
||||
|
||||
rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_SSH_DIR, no_home);
|
||||
assert_ssh_return_code(s->ssh.session, rc);
|
||||
s->ssh.session->opts.homedir = strdup("~/.no_ssh");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user