Fixed ssh_get_home_dir and ssh dir to be more portable on UNIX systems.

Thanks to Pino Toscano.
This commit is contained in:
Andreas Schneider
2009-10-15 14:53:11 +02:00
parent c360ed1d9a
commit cbf012c337
4 changed files with 36 additions and 24 deletions

View File

@@ -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,