diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-16 23:33:46 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-16 23:33:46 +0800 |
commit | 3a923b72a4547bd75a4f88e4ecea521c40911f1a (patch) | |
tree | d3c6f60c8d2f326230a301dcf66f67ad553afc6d /svr-main.c | |
parent | 5bf12148592834b516af1314062a841862ad4b80 (diff) | |
parent | c218af6ea78448ab7ec197c00274baff63a8cda9 (diff) |
Merge branch 'master' of github.com:mkj/dropbear
Diffstat (limited to 'svr-main.c')
-rw-r--r-- | svr-main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -83,6 +83,13 @@ static void main_inetd() { /* Set up handlers, syslog, seed random */ commonsetup(); +#if DEBUG_TRACE + if (debug_trace) { + /* -v output goes to stderr which would get sent over the inetd network socket */ + dropbear_exit(LOG_ERR, "Dropbear inetd mode is incompatible with debug -v"); + } +#endif + /* In case our inetd was lax in logging source addresses */ get_socket_address(0, NULL, NULL, &host, &port, 0); dropbear_log(LOG_INFO, "Child connection from %s:%s", host, port); |