diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2020-01-31 23:11:26 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2020-01-31 23:11:26 +0000 |
commit | 4394e2bc9b4d6082d74444c765c454c5fdaf57c0 (patch) | |
tree | a9d6f65fd8bf8ceb89a379301bb026fdc2c396ef /usr.bin | |
parent | 14d7bcc41f700cd1ce83321ce4c7098536feda2c (diff) |
force early logging to stderr if debug_flag (-d) is set; avoids
missing messages from re-exec config passing
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 6c7d0a3bf39..2cce8188a53 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.547 2020/01/31 23:08:08 djm Exp $ */ +/* $OpenBSD: sshd.c,v 1.548 2020/01/31 23:11:25 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1561,7 +1561,7 @@ main(int ac, char **av) SYSLOG_LEVEL_INFO : options.log_level, options.log_facility == SYSLOG_FACILITY_NOT_SET ? SYSLOG_FACILITY_AUTH : options.log_facility, - log_stderr || !inetd_flag); + log_stderr || !inetd_flag || debug_flag); sensitive_data.have_ssh2_key = 0; |