[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] use ssh_log instead of fprintf in ssh_config_parse_file
[Thread Prev] | [Thread Next]
- Subject: [PATCH] use ssh_log instead of fprintf in ssh_config_parse_file
- From: "Bernhard R. Link" <brlink@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sat, 12 Feb 2011 18:40:11 +0100
- To: libssh@xxxxxxxxxx
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. --- src/config.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index 4b2c739..b8b6a0e 100644 --- a/src/config.c +++ b/src/config.c @@ -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)) { -- 1.5.6.5
Archive administrator: postmaster@lists.cynapses.org