mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
Fixed ssh_get_home_dir and ssh dir to be more portable on UNIX systems.
Thanks to Pino Toscano.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user