Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
d1e20bf6
Commit
d1e20bf6
authored
Mar 27, 2002
by
Niels Möller
Browse files
Removed the short alias, -C, for the --subsystem
option. Rev: src/client.c:1.139
parent
e7d1d8b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client.c
View file @
d1e20bf6
...
...
@@ -411,6 +411,8 @@ make_client_session(struct client_options *options);
#define OPT_FORK_STDIO 0x213
#define OPT_SUBSYSTEM 0x214
void
init_client_options
(
struct
client_options
*
self
,
struct
randomness
*
random
,
...
...
@@ -499,11 +501,13 @@ client_options[] =
{
"background"
,
'B'
,
NULL
,
0
,
"Put process into the background. Implies -N."
,
0
},
{
"execute"
,
'E'
,
"command"
,
0
,
"Execute a command on the remote machine"
,
0
},
{
"shell"
,
'S'
,
"command"
,
0
,
"Spawn a remote shell"
,
0
},
{
"subsystem"
,
'
OPT_SUBSYSTEM
'
,
"subsystem-name"
,
0
,
#if WITH_PTY_SUPPORT
{
"subsystem"
,
'C'
,
"subsystem-name"
,
0
,
"Connect to given subsystem. Implies --no-pty."
,
0
},
"Connect to given subsystem. Implies --no-pty."
,
#else
{
"subsystem"
,
'C'
,
"subsystem-name"
,
0
,
"Connect to given subsystem."
,
0
},
"Connect to given subsystem."
,
#endif
0
},
/* { "gateway", 'G', NULL, 0, "Setup a local gateway", 0 }, */
{
NULL
,
0
,
NULL
,
0
,
"Universal not:"
,
0
},
{
"no"
,
'n'
,
NULL
,
0
,
"Inverts the effect of the next modifier"
,
0
},
...
...
@@ -1160,10 +1164,12 @@ client_argp_parser(int key, char *arg, struct argp_state *state)
client_add_action
(
options
,
client_shell_session
(
options
));
break
;
case
'C'
:
case
OPT_SUBSYSTEM
:
client_add_action
(
options
,
client_subsystem_session
(
options
,
ssh_format
(
"%lz"
,
arg
)));
options
->
start_shell
=
0
;
#if WITH_PTY_SUPPORT
options
->
with_pty
=
0
;
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment