version 1.6, 2009/07/26 12:58:44 |
version 1.7, 2009/08/03 14:10:54 |
|
|
struct cmd_target_data *data = self->data; |
struct cmd_target_data *data = self->data; |
struct session *s; |
struct session *s; |
struct client *c; |
struct client *c; |
char *cause; |
char *overrides, *cause; |
u_int i; |
u_int i; |
|
|
if (ARRAY_LENGTH(&sessions) == 0) { |
if (ARRAY_LENGTH(&sessions) == 0) { |
|
|
return (-1); |
return (-1); |
} |
} |
|
|
if (tty_open(&ctx->cmdclient->tty, &cause) != 0) { |
overrides = |
|
options_get_string(&s->options, "terminal-overrides"); |
|
if (tty_open(&ctx->cmdclient->tty, overrides, &cause) != 0) { |
ctx->error(ctx, "terminal open failed: %s", cause); |
ctx->error(ctx, "terminal open failed: %s", cause); |
xfree(cause); |
xfree(cause); |
return (-1); |
return (-1); |