From cbf012c33722737c255d08c7f81a3ee5c6c19052 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 15 Oct 2009 14:53:11 +0200 Subject: Fixed ssh_get_home_dir and ssh dir to be more portable on UNIX systems. Thanks to Pino Toscano. --- libssh/auth.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libssh/auth.c') diff --git a/libssh/auth.c b/libssh/auth.c index 59fd889..d03f8f1 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -774,16 +774,16 @@ static struct ssh_keys_struct keytab[] = { /* This requires GCC extensions */ static struct ssh_keys_struct keytab[] = { { - .privatekey = "%s/.ssh/identity", - .publickey = "%s/.ssh/identity.pub" + .privatekey = "identity", + .publickey = "identity.pub" }, { - .privatekey = "%s/.ssh/id_dsa", - .publickey = "%s/.ssh/id_dsa.pub", + .privatekey = "id_dsa", + .publickey = "id_dsa.pub", }, { - .privatekey = "%s/.ssh/id_rsa", - .publickey = "%s/.ssh/id_rsa.pub", + .privatekey = "id_rsa", + .publickey = "id_rsa.pub", }, { .privatekey = NULL, -- cgit