|
Lines 122-127
initialize_server_options(ServerOptions
Link Here
|
| 122 |
options->permit_tun = -1; |
122 |
options->permit_tun = -1; |
| 123 |
options->num_permitted_opens = -1; |
123 |
options->num_permitted_opens = -1; |
| 124 |
options->adm_forced_command = NULL; |
124 |
options->adm_forced_command = NULL; |
|
|
125 |
options->remote_command_cleanup = -1; |
| 125 |
} |
126 |
} |
| 126 |
|
127 |
|
| 127 |
void |
128 |
void |
|
Lines 263-268
fill_default_server_options(ServerOption
Link Here
|
| 263 |
} |
264 |
} |
| 264 |
#endif |
265 |
#endif |
| 265 |
|
266 |
|
|
|
267 |
if (options->remote_command_cleanup == -1) |
| 268 |
options->remote_command_cleanup = 0; |
| 269 |
|
| 266 |
} |
270 |
} |
| 267 |
|
271 |
|
| 268 |
/* Keyword tokens. */ |
272 |
/* Keyword tokens. */ |
|
Lines 293-298
typedef enum {
Link Here
|
| 293 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
297 |
sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, |
| 294 |
sMatch, sPermitOpen, sForceCommand, |
298 |
sMatch, sPermitOpen, sForceCommand, |
| 295 |
sUsePrivilegeSeparation, |
299 |
sUsePrivilegeSeparation, |
|
|
300 |
sRemoteCommandCleanup, |
| 296 |
sDeprecated, sUnsupported |
301 |
sDeprecated, sUnsupported |
| 297 |
} ServerOpCodes; |
302 |
} ServerOpCodes; |
| 298 |
|
303 |
|
|
Lines 403-408
static struct {
Link Here
|
| 403 |
{ "match", sMatch, SSHCFG_ALL }, |
408 |
{ "match", sMatch, SSHCFG_ALL }, |
| 404 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
409 |
{ "permitopen", sPermitOpen, SSHCFG_ALL }, |
| 405 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
410 |
{ "forcecommand", sForceCommand, SSHCFG_ALL }, |
|
|
411 |
{ "remotecommandcleanup", sRemoteCommandCleanup }, |
| 406 |
{ NULL, sBadOption, 0 } |
412 |
{ NULL, sBadOption, 0 } |
| 407 |
}; |
413 |
}; |
| 408 |
|
414 |
|
|
Lines 1268-1273
parse_flag:
Link Here
|
| 1268 |
arg = strdelim(&cp); |
1274 |
arg = strdelim(&cp); |
| 1269 |
break; |
1275 |
break; |
| 1270 |
|
1276 |
|
|
|
1277 |
case sRemoteCommandCleanup: |
| 1278 |
intptr = &options->remote_command_cleanup; |
| 1279 |
goto parse_flag; |
| 1280 |
|
| 1271 |
default: |
1281 |
default: |
| 1272 |
fatal("%s line %d: Missing handler for opcode %s (%d)", |
1282 |
fatal("%s line %d: Missing handler for opcode %s (%d)", |
| 1273 |
filename, linenum, arg, opcode); |
1283 |
filename, linenum, arg, opcode); |