Hi!
Attached is a patch that lets scp accept options -1 and -2 to
conveniently choose the protocol version, as it is already
possible with ssh.
Ciao
Thomas
-------------- next part --------------
? confdefs.h
Index: scp.c
==================================================================RCS file:
/cvs/openssh/scp.c,v
retrieving revision 1.97
diff -u -r1.97 scp.c
--- scp.c 21 Jun 2002 00:41:52 -0000 1.97
+++ scp.c 10 Sep 2002 17:37:49 -0000
@@ -233,9 +241,11 @@
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) != -1)
+ while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:12")) != -1)
switch (ch) {
/* User-visible flags. */
+ case '1':
+ case '2':
case '4':
case '6':
case 'C':