1
1

use ssh_log instead of fprintf in ssh_config_parse_file

ssh_config_parse_file calls "fprintf(stderr," directly thus ignoring
a set log callback. Replacing the print with a call to ssh_log should
fix this.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Bernhard R. Link 2011-02-12 18:40:11 +01:00 коммит произвёл Andreas Schneider
родитель 4d38b4c848
Коммит 8d9d46ca66

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

@ -327,9 +327,7 @@ int ssh_config_parse_file(ssh_session session, const char *filename) {
return 0;
}
if (session->log_verbosity) {
fprintf(stderr, "Reading configuration data from %s\n", filename);
}
ssh_log(session, SSH_LOG_RARE, "Reading configuration data from %s", filename);
parsing = 1;
while (fgets(line, sizeof(line), f)) {