aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2011-02-12 18:40:11 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-12 19:08:59 +0100
commit8d9d46ca6666910619b56f4799a7bc764cd48607 (patch)
tree921fba8565b9719aa36c2dcb28947aa7874106ba
parent4d38b4c8486c2ab56c0a30cf5d77db3c03354d07 (diff)
downloadlibssh-8d9d46ca6666910619b56f4799a7bc764cd48607.tar.gz
libssh-8d9d46ca6666910619b56f4799a7bc764cd48607.tar.xz
libssh-8d9d46ca6666910619b56f4799a7bc764cd48607.zip
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>
-rw-r--r--src/config.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index 4b2c739a..b8b6a0ed 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)) {