diff options
author | Bernhard R. Link <brlink@debian.org> | 2011-02-12 18:40:11 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-02-12 19:21:17 +0100 |
commit | a785ba3c4d42b0470d4c758b92bc55911f6e228b (patch) | |
tree | 435df8f03616497ec39bd17373f25c4920683dc9 /src | |
parent | 92dbd4eca2f97b55ecbed0e52d58203b70bc32b2 (diff) | |
download | libssh-a785ba3c4d42b0470d4c758b92bc55911f6e228b.tar.gz libssh-a785ba3c4d42b0470d4c758b92bc55911f6e228b.tar.xz libssh-a785ba3c4d42b0470d4c758b92bc55911f6e228b.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>
(cherry picked from commit 8d9d46ca6666910619b56f4799a7bc764cd48607)
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 4 |
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)) { |