Mercurial > dropbear
comparison cli-runopts.c @ 134:6b306ad5f5b5
-i works with scp now.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 17 Oct 2004 10:35:19 +0000 |
parents | 68b84c20ca1e |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
133:b4cfe976c8e1 | 134:6b306ad5f5b5 |
---|---|
147 case 'p': /* remoteport */ | 147 case 'p': /* remoteport */ |
148 next = &cli_opts.remoteport; | 148 next = &cli_opts.remoteport; |
149 break; | 149 break; |
150 #ifdef ENABLE_CLI_PUBKEY_AUTH | 150 #ifdef ENABLE_CLI_PUBKEY_AUTH |
151 case 'i': /* an identityfile */ | 151 case 'i': /* an identityfile */ |
152 nextiskey = 1; | 152 /* Keep scp happy when it changes "-i file" to "-ifile" */ |
153 if (strlen(argv[i]) > 2) { | |
154 loadidentityfile(&argv[i][2]); | |
155 } else { | |
156 nextiskey = 1; | |
157 } | |
153 break; | 158 break; |
154 #endif | 159 #endif |
155 case 't': /* we want a pty */ | 160 case 't': /* we want a pty */ |
156 cli_opts.wantpty = 1; | 161 cli_opts.wantpty = 1; |
157 break; | 162 break; |