version 1.307, 2020/03/16 06:12:42 |
version 1.308, 2020/03/17 11:10:12 |
|
|
shell = options_get_string(s->options, "default-shell"); |
shell = options_get_string(s->options, "default-shell"); |
else |
else |
shell = options_get_string(global_s_options, "default-shell"); |
shell = options_get_string(global_s_options, "default-shell"); |
|
if (!checkshell(shell)) |
|
shell = _PATH_BSHELL; |
shellsize = strlen(shell) + 1; |
shellsize = strlen(shell) + 1; |
|
|
msg = xmalloc(cmdsize + shellsize); |
msg = xmalloc(cmdsize + shellsize); |
|
|
const char *shell; |
const char *shell; |
|
|
shell = options_get_string(global_s_options, "default-shell"); |
shell = options_get_string(global_s_options, "default-shell"); |
if (*shell == '\0' || areshell(shell)) |
if (!checkshell(shell)) |
shell = _PATH_BSHELL; |
shell = _PATH_BSHELL; |
proc_send(c->peer, MSG_SHELL, -1, shell, strlen(shell) + 1); |
proc_send(c->peer, MSG_SHELL, -1, shell, strlen(shell) + 1); |
|
|