mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-25 23:05:21 +02:00
- markus@cvs.openbsd.org 2003/01/23 14:06:15
[scp.1 scp.c] scp -12; Sam Smith and others; ok provos@, deraadt@
This commit is contained in:
parent
ff74d748e9
commit
8e12147df5
@ -11,6 +11,9 @@
|
|||||||
- markus@cvs.openbsd.org 2003/01/23 14:01:53
|
- markus@cvs.openbsd.org 2003/01/23 14:01:53
|
||||||
[scp.c]
|
[scp.c]
|
||||||
bandwidth limitation patch (scp -l) from niels@; ok todd@, deraadt@
|
bandwidth limitation patch (scp -l) from niels@; ok todd@, deraadt@
|
||||||
|
- markus@cvs.openbsd.org 2003/01/23 14:06:15
|
||||||
|
[scp.1 scp.c]
|
||||||
|
scp -12; Sam Smith and others; ok provos@, deraadt@
|
||||||
|
|
||||||
20030123
|
20030123
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
@ -1070,4 +1073,4 @@
|
|||||||
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
||||||
ok provos@
|
ok provos@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2585 2003/01/24 00:36:58 djm Exp $
|
$Id: ChangeLog,v 1.2586 2003/01/24 00:37:38 djm Exp $
|
||||||
|
14
scp.1
14
scp.1
@ -9,7 +9,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" Created: Sun May 7 00:14:37 1995 ylo
|
.\" Created: Sun May 7 00:14:37 1995 ylo
|
||||||
.\"
|
.\"
|
||||||
.\" $OpenBSD: scp.1,v 1.23 2002/06/22 16:41:57 stevesk Exp $
|
.\" $OpenBSD: scp.1,v 1.24 2003/01/23 14:06:15 markus Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd September 25, 1999
|
.Dd September 25, 1999
|
||||||
.Dt SCP 1
|
.Dt SCP 1
|
||||||
@ -19,7 +19,7 @@
|
|||||||
.Nd secure copy (remote file copy program)
|
.Nd secure copy (remote file copy program)
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm scp
|
.Nm scp
|
||||||
.Op Fl pqrvBC46
|
.Op Fl pqrvBC1246
|
||||||
.Op Fl F Ar ssh_config
|
.Op Fl F Ar ssh_config
|
||||||
.Op Fl S Ar program
|
.Op Fl S Ar program
|
||||||
.Op Fl P Ar port
|
.Op Fl P Ar port
|
||||||
@ -123,8 +123,16 @@ This is useful for specifying options
|
|||||||
for which there is no separate
|
for which there is no separate
|
||||||
.Nm scp
|
.Nm scp
|
||||||
command-line flag. For example, forcing the use of protocol
|
command-line flag. For example, forcing the use of protocol
|
||||||
version 1 is specified using
|
version 1 can be specified using
|
||||||
.Ic scp -oProtocol=1 .
|
.Ic scp -oProtocol=1 .
|
||||||
|
.It Fl 1
|
||||||
|
Forces
|
||||||
|
.Nm
|
||||||
|
to use protocol 1.
|
||||||
|
.It Fl 2
|
||||||
|
Forces
|
||||||
|
.Nm
|
||||||
|
to use protocol 2.
|
||||||
.It Fl 4
|
.It Fl 4
|
||||||
Forces
|
Forces
|
||||||
.Nm
|
.Nm
|
||||||
|
8
scp.c
8
scp.c
@ -75,7 +75,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: scp.c,v 1.99 2003/01/23 14:01:53 markus Exp $");
|
RCSID("$OpenBSD: scp.c,v 1.100 2003/01/23 14:06:15 markus Exp $");
|
||||||
|
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "atomicio.h"
|
#include "atomicio.h"
|
||||||
@ -225,9 +225,11 @@ main(argc, argv)
|
|||||||
addargs(&args, "-oClearAllForwardings yes");
|
addargs(&args, "-oClearAllForwardings yes");
|
||||||
|
|
||||||
fflag = tflag = 0;
|
fflag = tflag = 0;
|
||||||
while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q46S:o:F:")) != -1)
|
while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1)
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
/* User-visible flags. */
|
/* User-visible flags. */
|
||||||
|
case '1':
|
||||||
|
case '2':
|
||||||
case '4':
|
case '4':
|
||||||
case '6':
|
case '6':
|
||||||
case 'C':
|
case 'C':
|
||||||
@ -1025,7 +1027,7 @@ void
|
|||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
(void) fprintf(stderr,
|
(void) fprintf(stderr,
|
||||||
"usage: scp [-pqrvBC46] [-F config] [-S program] [-P port]\n"
|
"usage: scp [-pqrvBC1246] [-F config] [-S program] [-P port]\n"
|
||||||
" [-c cipher] [-i identity] [-l limit] [-o option]\n"
|
" [-c cipher] [-i identity] [-l limit] [-o option]\n"
|
||||||
" [[user@]host1:]file1 [...] [[user@]host2:]file2\n");
|
" [[user@]host1:]file1 [...] [[user@]host2:]file2\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user