[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] 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.
---
 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