diff 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
line wrap: on
line diff
--- a/cli-runopts.c	Sun Oct 17 08:19:47 2004 +0000
+++ b/cli-runopts.c	Sun Oct 17 10:35:19 2004 +0000
@@ -149,7 +149,12 @@
 					break;
 #ifdef ENABLE_CLI_PUBKEY_AUTH
 				case 'i': /* an identityfile */
-					nextiskey = 1;
+					/* Keep scp happy when it changes "-i file" to "-ifile" */
+					if (strlen(argv[i]) > 2) {
+						loadidentityfile(&argv[i][2]);
+					} else  {
+						nextiskey = 1;
+					}
 					break;
 #endif
 				case 't': /* we want a pty */