Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ssh if debugging (i.e, -v), use options.level in...



details:   https://anonhg.NetBSD.org/src/rev/62a591617b0a
branches:  trunk
changeset: 507862:62a591617b0a
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Apr 02 03:53:36 2001 +0000

description:
if debugging (i.e, -v), use options.level instead of SYSLOG_LEVEL_INFO
to the first call to log_init(), otherwise debug messages from config
file parsing won't appear. (this seems to have been broken in recent
versions of openssh)

diffstat:

 crypto/dist/ssh/ssh.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r fb20954c7de0 -r 62a591617b0a crypto/dist/ssh/ssh.c
--- a/crypto/dist/ssh/ssh.c     Sun Apr 01 23:54:14 2001 +0000
+++ b/crypto/dist/ssh/ssh.c     Mon Apr 02 03:53:36 2001 +0000
@@ -548,7 +548,8 @@
         * Initialize "log" output.  Since we are the client all output
         * actually goes to stderr.
         */
-       log_init(av[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);
+       log_init(av[0], debug_flag ? options.log_level : SYSLOG_LEVEL_INFO,
+           SYSLOG_FACILITY_USER, 1);
 
        /* Read per-user configuration file. */
        snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, _PATH_SSH_USER_CONFFILE);



Home | Main Index | Thread Index | Old Index