mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
session: Fixed setting up default identity files.
This commit is contained in:
@@ -112,7 +112,7 @@ ssh_session ssh_new(void) {
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
id = strdup("SSH_DIR/id_rsa");
|
id = strdup("%d/id_rsa");
|
||||||
if (id == NULL) {
|
if (id == NULL) {
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
@@ -121,7 +121,7 @@ ssh_session ssh_new(void) {
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
id = strdup("SSH_DIR/id_dsa");
|
id = strdup("%d/id_dsa");
|
||||||
if (id == NULL) {
|
if (id == NULL) {
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
@@ -130,7 +130,7 @@ ssh_session ssh_new(void) {
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
id = strdup("SSH_DIR/identity");
|
id = strdup("%d/identity");
|
||||||
if (id == NULL) {
|
if (id == NULL) {
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user