summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-01-31 23:11:25 +0000
committerDamien Miller <djm@mindrot.org>2020-02-01 10:22:32 +1100
commit245399dfb3ecebc6abfc2ef4ee2e650fa9f6942b (patch)
treeeefe60faa1304347a09903877c8fe6aad198ae4f /sshd.c
parent7365f28a66d1c443723fbe6f4a2612ea6002901e (diff)
upstream: force early logging to stderr if debug_flag (-d) is set;
avoids missing messages from re-exec config passing OpenBSD-Commit-ID: 02484b8241c1f49010e7a543a7098e6910a8c9ff
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 9d0d8b4f4..f4e659f1b 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.547 2020/01/31 23:08:08 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.548 2020/01/31 23:11:25 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1664,7 +1664,7 @@ main(int ac, char **av)
1664 SYSLOG_LEVEL_INFO : options.log_level, 1664 SYSLOG_LEVEL_INFO : options.log_level,
1665 options.log_facility == SYSLOG_FACILITY_NOT_SET ? 1665 options.log_facility == SYSLOG_FACILITY_NOT_SET ?
1666 SYSLOG_FACILITY_AUTH : options.log_facility, 1666 SYSLOG_FACILITY_AUTH : options.log_facility,
1667 log_stderr || !inetd_flag); 1667 log_stderr || !inetd_flag || debug_flag);
1668 1668
1669 /* 1669 /*
1670 * Unset KRB5CCNAME, otherwise the user's session may inherit it from 1670 * Unset KRB5CCNAME, otherwise the user's session may inherit it from