summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--scp.19
-rw-r--r--scp.c11
-rw-r--r--sftp.19
-rw-r--r--sftp.c11
5 files changed, 34 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index a883c5c6b..3c0cb6afc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,10 @@
8 put somewhere sane. Add Ssh.bin to manifest. 8 put somewhere sane. Add Ssh.bin to manifest.
9 - (djm) Make smartcard support conditional in Redhat RPM spec 9 - (djm) Make smartcard support conditional in Redhat RPM spec
10 - (bal) LICENCE update. Has not been done in a while. 10 - (bal) LICENCE update. Has not been done in a while.
11 - OpenBSD CVS Sync
12 - stevesk@cvs.openbsd.org 2001/09/17 17:57:57
13 [scp.1 scp.c sftp.1 sftp.c]
14 add -Fssh_config option; ok markus@
11 15
1220010917 1620010917
13 - (djm) x11-ssh-askpass-1.2.4 in RPM spec, revert workarounds 17 - (djm) x11-ssh-askpass-1.2.4 in RPM spec, revert workarounds
@@ -6468,4 +6472,4 @@
6468 - Wrote replacements for strlcpy and mkdtemp 6472 - Wrote replacements for strlcpy and mkdtemp
6469 - Released 1.0pre1 6473 - Released 1.0pre1
6470 6474
6471$Id: ChangeLog,v 1.1531 2001/09/18 05:36:27 mouring Exp $ 6475$Id: ChangeLog,v 1.1532 2001/09/18 05:38:44 mouring Exp $
diff --git a/scp.1 b/scp.1
index 960f1ac95..11bcfe1dc 100644
--- a/scp.1
+++ b/scp.1
@@ -9,7 +9,7 @@
9.\" 9.\"
10.\" Created: Sun May 7 00:14:37 1995 ylo 10.\" Created: Sun May 7 00:14:37 1995 ylo
11.\" 11.\"
12.\" $OpenBSD: scp.1,v 1.18 2001/09/05 06:23:07 deraadt Exp $ 12.\" $OpenBSD: scp.1,v 1.19 2001/09/17 17:57:56 stevesk Exp $
13.\" 13.\"
14.Dd September 25, 1999 14.Dd September 25, 1999
15.Dt SCP 1 15.Dt SCP 1
@@ -20,6 +20,7 @@
20.Sh SYNOPSIS 20.Sh SYNOPSIS
21.Nm scp 21.Nm scp
22.Op Fl pqrvC46 22.Op Fl pqrvC46
23.Op Fl F Ar ssh_config
23.Op Fl S Ar program 24.Op Fl S Ar program
24.Op Fl P Ar port 25.Op Fl P Ar port
25.Op Fl c Ar cipher 26.Op Fl c Ar cipher
@@ -92,6 +93,12 @@ Passes the
92flag to 93flag to
93.Xr ssh 1 94.Xr ssh 1
94to enable compression. 95to enable compression.
96.It Fl F Ar ssh_config
97Specifies an alternative
98per-user configuration file for
99.Nm ssh .
100This option is directly passed to
101.Xr ssh 1 .
95.It Fl P Ar port 102.It Fl P Ar port
96Specifies the port to connect to on the remote host. 103Specifies the port to connect to on the remote host.
97Note that this option is written with a capital 104Note that this option is written with a capital
diff --git a/scp.c b/scp.c
index 654496847..512dfa67a 100644
--- a/scp.c
+++ b/scp.c
@@ -75,7 +75,7 @@
75 */ 75 */
76 76
77#include "includes.h" 77#include "includes.h"
78RCSID("$OpenBSD: scp.c,v 1.82 2001/09/12 18:18:25 stevesk Exp $"); 78RCSID("$OpenBSD: scp.c,v 1.83 2001/09/17 17:57:56 stevesk Exp $");
79 79
80#include "xmalloc.h" 80#include "xmalloc.h"
81#include "atomicio.h" 81#include "atomicio.h"
@@ -241,7 +241,7 @@ main(argc, argv)
241 addargs(&args, "-oFallBackToRsh no"); 241 addargs(&args, "-oFallBackToRsh no");
242 242
243 fflag = tflag = 0; 243 fflag = tflag = 0;
244 while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:")) != -1) 244 while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) != -1)
245 switch (ch) { 245 switch (ch) {
246 /* User-visible flags. */ 246 /* User-visible flags. */
247 case '4': 247 case '4':
@@ -252,6 +252,7 @@ main(argc, argv)
252 case 'o': 252 case 'o':
253 case 'c': 253 case 'c':
254 case 'i': 254 case 'i':
255 case 'F':
255 addargs(&args, "-%c%s", ch, optarg); 256 addargs(&args, "-%c%s", ch, optarg);
256 break; 257 break;
257 case 'P': 258 case 'P':
@@ -954,9 +955,9 @@ response()
954void 955void
955usage() 956usage()
956{ 957{
957 (void) fprintf(stderr, "usage: scp " 958 (void) fprintf(stderr,
958 "[-pqrvBC46] [-S ssh] [-P port] [-c cipher] [-i identity] " 959 "usage: scp [-pqrvBC46] [-F config] [-S ssh] [-P port] [-c cipher] [-i identity]\n"
959 "[-o option] f1 f2\n" 960 " [-o option] f1 f2\n"
960 " or: scp [options] f1 ... fn directory\n"); 961 " or: scp [options] f1 ... fn directory\n");
961 exit(1); 962 exit(1);
962} 963}
diff --git a/sftp.1 b/sftp.1
index 2787e99cb..120e16897 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.24 2001/09/05 06:23:07 deraadt Exp $ 1.\" $OpenBSD: sftp.1,v 1.25 2001/09/17 17:57:57 stevesk Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -32,6 +32,7 @@
32.Nm sftp 32.Nm sftp
33.Op Fl vC 33.Op Fl vC
34.Op Fl b Ar batchfile 34.Op Fl b Ar batchfile
35.Op Fl F Ar ssh_config
35.Op Fl o Ar ssh_option 36.Op Fl o Ar ssh_option
36.Op Ar host 37.Op Ar host
37.Nm sftp 38.Nm sftp
@@ -77,6 +78,12 @@ and
77Enables compression (via ssh's 78Enables compression (via ssh's
78.Fl C 79.Fl C
79flag) 80flag)
81.It Fl F Ar ssh_config
82Specifies an alternative
83per-user configuration file for
84.Nm ssh .
85This option is directly passed to
86.Xr ssh 1 .
80.It Fl o Ar ssh_option 87.It Fl o Ar ssh_option
81Can be used to pass options to 88Can be used to pass options to
82.Nm ssh 89.Nm ssh
diff --git a/sftp.c b/sftp.c
index 98294ab09..b9558efd7 100644
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$OpenBSD: sftp.c,v 1.18 2001/06/23 15:12:20 itojun Exp $"); 27RCSID("$OpenBSD: sftp.c,v 1.19 2001/09/17 17:57:57 stevesk Exp $");
28 28
29/* XXX: commandline mode */ 29/* XXX: commandline mode */
30/* XXX: short-form remote directory listings (like 'ls -C') */ 30/* XXX: short-form remote directory listings (like 'ls -C') */
@@ -93,7 +93,9 @@ connect_to_server(char **args, int *in, int *out, pid_t *sshpid)
93static void 93static void
94usage(void) 94usage(void)
95{ 95{
96 fprintf(stderr, "usage: sftp [-1vC] [-b batchfile] [-osshopt=value] [user@]host[:file [file]]\n"); 96 fprintf(stderr,
97 "usage: sftp [-1vC] [-b batchfile] [-F config] [-o option]\n"
98 " [user@]host[:file [file]]\n");
97 exit(1); 99 exit(1);
98} 100}
99 101
@@ -119,7 +121,7 @@ main(int argc, char **argv)
119 ll = SYSLOG_LEVEL_INFO; 121 ll = SYSLOG_LEVEL_INFO;
120 infile = stdin; /* Read from STDIN unless changed by -b */ 122 infile = stdin; /* Read from STDIN unless changed by -b */
121 123
122 while ((ch = getopt(argc, argv, "1hvCo:s:S:b:")) != -1) { 124 while ((ch = getopt(argc, argv, "1hvCo:s:S:b:F:")) != -1) {
123 switch (ch) { 125 switch (ch) {
124 case 'C': 126 case 'C':
125 addargs(&args, "-C"); 127 addargs(&args, "-C");
@@ -131,8 +133,9 @@ main(int argc, char **argv)
131 } 133 }
132 debug_level++; 134 debug_level++;
133 break; 135 break;
136 case 'F':
134 case 'o': 137 case 'o':
135 addargs(&args, "-o%s", optarg); 138 addargs(&args, "-%c%s", ch, optarg);
136 break; 139 break;
137 case '1': 140 case '1':
138 sshver = 1; 141 sshver = 1;