1
1

options: Set the local username if still not set.

Этот коммит содержится в:
Andreas Schneider 2010-05-21 10:19:06 +02:00
родитель 421fb2a829
Коммит d3f1d094f7

Просмотреть файл

@ -860,6 +860,13 @@ int ssh_options_apply(ssh_session session) {
}
}
if (session->username == NULL) {
rc = ssh_options_set(session, SSH_OPTIONS_USER, NULL);
if (rc < 0) {
return -1;
}
}
if (session->knownhosts == NULL) {
tmp = ssh_path_expand_escape(session, "%d/known_hosts");
} else {