aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-10-15 14:53:11 +0200
committerAndreas Schneider <mail@cynapses.org>2009-10-15 14:53:11 +0200
commitcbf012c33722737c255d08c7f81a3ee5c6c19052 (patch)
treeff94b8a3aaa3c239dcfe85715b4eba5034a5b9d6 /libssh/auth.c
parentc360ed1d9ad4ee0a65dd80494605c55802c30ba3 (diff)
downloadlibssh-cbf012c33722737c255d08c7f81a3ee5c6c19052.tar.gz
libssh-cbf012c33722737c255d08c7f81a3ee5c6c19052.tar.xz
libssh-cbf012c33722737c255d08c7f81a3ee5c6c19052.zip
Fixed ssh_get_home_dir and ssh dir to be more portable on UNIX systems.
Thanks to Pino Toscano.
Diffstat (limited to 'libssh/auth.c')
-rw-r--r--libssh/auth.c12
1 files changed, 6 insertions, 6 deletions
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,