comparison svr-runopts.c @ 1819:5120e22882de

pass on sever process environment to child processes (option -e) (#118)
author Roland Vollgraf <30869947+rvollgraf@users.noreply.github.com>
date Thu, 19 Aug 2021 17:13:41 +0200
parents 435cfb9ec96e
children 94dc11094e26
comparison
equal deleted inserted replaced
1818:587c76726b5f 1819:5120e22882de
62 #endif 62 #endif
63 #if DROPBEAR_DELAY_HOSTKEY 63 #if DROPBEAR_DELAY_HOSTKEY
64 "-R Create hostkeys as required\n" 64 "-R Create hostkeys as required\n"
65 #endif 65 #endif
66 "-F Don't fork into background\n" 66 "-F Don't fork into background\n"
67 "-e Pass on server process environment to child process\n"
67 #ifdef DISABLE_SYSLOG 68 #ifdef DISABLE_SYSLOG
68 "(Syslog support not compiled in, using stderr)\n" 69 "(Syslog support not compiled in, using stderr)\n"
69 #else 70 #else
70 "-E Log to stderr rather than syslog\n" 71 "-E Log to stderr rather than syslog\n"
71 #endif 72 #endif
171 #endif 172 #endif
172 #if DROPBEAR_PLUGIN 173 #if DROPBEAR_PLUGIN
173 svr_opts.pubkey_plugin = NULL; 174 svr_opts.pubkey_plugin = NULL;
174 svr_opts.pubkey_plugin_options = NULL; 175 svr_opts.pubkey_plugin_options = NULL;
175 #endif 176 #endif
177 svr_opts.pass_on_env = 0;
176 178
177 #ifndef DISABLE_ZLIB 179 #ifndef DISABLE_ZLIB
178 opts.compress_mode = DROPBEAR_COMPRESS_DELAYED; 180 opts.compress_mode = DROPBEAR_COMPRESS_DELAYED;
179 #endif 181 #endif
180 182
221 #ifndef DISABLE_SYSLOG 223 #ifndef DISABLE_SYSLOG
222 case 'E': 224 case 'E':
223 opts.usingsyslog = 0; 225 opts.usingsyslog = 0;
224 break; 226 break;
225 #endif 227 #endif
228 case 'e':
229 svr_opts.pass_on_env = 1;
230 break;
231
226 #if DROPBEAR_SVR_LOCALTCPFWD 232 #if DROPBEAR_SVR_LOCALTCPFWD
227 case 'j': 233 case 'j':
228 svr_opts.nolocaltcp = 1; 234 svr_opts.nolocaltcp = 1;
229 break; 235 break;
230 #endif 236 #endif