comparison svr-runopts.c @ 1290:ee2ffa044c7e

Add manpage and log for forced_command
author Matt Johnston <matt@ucc.asn.au>
date Tue, 12 Apr 2016 21:05:40 +0800
parents a23386821e9f
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1289:a23386821e9f 1290:ee2ffa044c7e
349 if (m_str_to_uint(idle_timeout_arg, &val) == DROPBEAR_FAILURE) { 349 if (m_str_to_uint(idle_timeout_arg, &val) == DROPBEAR_FAILURE) {
350 dropbear_exit("Bad idle_timeout '%s'", idle_timeout_arg); 350 dropbear_exit("Bad idle_timeout '%s'", idle_timeout_arg);
351 } 351 }
352 opts.idle_timeout_secs = val; 352 opts.idle_timeout_secs = val;
353 } 353 }
354
355 if (svr_opts.forced_command) {
356 dropbear_log(LOG_INFO, "Forced command set to '%s'", svr_opts.forced_command);
357 }
354 } 358 }
355 359
356 static void addportandaddress(const char* spec) { 360 static void addportandaddress(const char* spec) {
357 char *spec_copy = NULL, *myspec = NULL, *port = NULL, *address = NULL; 361 char *spec_copy = NULL, *myspec = NULL, *port = NULL, *address = NULL;
358 362