Mercurial > dropbear
diff cli-runopts.c @ 325:0e4f225b7e07
Add -N "no remote command" dbclient option.
Document -N in dbclient.1 and -P in dropbear.8
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 07 Jun 2006 15:01:20 +0000 |
parents | 306499676384 |
children | d965110e3f5c |
line wrap: on
line diff
--- a/cli-runopts.c Wed Jun 07 14:48:35 2006 +0000 +++ b/cli-runopts.c Wed Jun 07 15:01:20 2006 +0000 @@ -50,6 +50,7 @@ "-l <username>\n" "-t Allocate a pty\n" "-T Don't allocate a pty\n" + "-N Don't run a remote command\n" #ifdef ENABLE_CLI_PUBKEY_AUTH "-i <identityfile> (multiple allowed)\n" #endif @@ -88,6 +89,7 @@ cli_opts.remoteport = NULL; cli_opts.username = NULL; cli_opts.cmd = NULL; + cli_opts.no_cmd = 0; cli_opts.wantpty = 9; /* 9 means "it hasn't been touched", gets set later */ #ifdef ENABLE_CLI_PUBKEY_AUTH cli_opts.privkeys = NULL; @@ -163,6 +165,9 @@ case 'T': /* don't want a pty */ cli_opts.wantpty = 0; break; + case 'N': + cli_opts.no_cmd = 1; + break; #ifdef ENABLE_CLI_LOCALTCPFWD case 'L': nextislocal = 1;