diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-15 23:30:54 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-15 23:30:54 +0800 |
commit | 17be46e229a108d115afe97715e3110aac638dd6 (patch) | |
tree | 92461f2f04042fb85712b668547ac1e3d1ba1ff7 /svr-main.c | |
parent | 370d4c7cd52c8a8c40f82a01ae0c8a483856935a (diff) |
disallow inetd -v
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); |