summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sftp.c b/sftp.c
index 798a72edb..4c1d55389 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.108 2009/08/12 00:13:00 djm Exp $ */ 1/* $OpenBSD: sftp.c,v 1.109 2009/08/13 01:11:19 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -1707,7 +1707,8 @@ main(int argc, char **argv)
1707 ll = SYSLOG_LEVEL_INFO; 1707 ll = SYSLOG_LEVEL_INFO;
1708 infile = stdin; 1708 infile = stdin;
1709 1709
1710 while ((ch = getopt(argc, argv, "1246hqvCc:i:o:s:S:b:B:F:P:R:")) != -1) { 1710 while ((ch = getopt(argc, argv,
1711 "1246hqvCc:D:i:o:s:S:b:B:F:P:R:")) != -1) {
1711 switch (ch) { 1712 switch (ch) {
1712 /* Passed through to ssh(1) */ 1713 /* Passed through to ssh(1) */
1713 case '4': 1714 case '4':
@@ -1726,6 +1727,9 @@ main(int argc, char **argv)
1726 showprogress = 0; 1727 showprogress = 0;
1727 addargs(&args, "-%c", ch); 1728 addargs(&args, "-%c", ch);
1728 break; 1729 break;
1730 case 'P':
1731 addargs(&args, "-oPort %s", optarg);
1732 break;
1729 case 'v': 1733 case 'v':
1730 if (debug_level < 3) { 1734 if (debug_level < 3) {
1731 addargs(&args, "-v"); 1735 addargs(&args, "-v");
@@ -1758,7 +1762,7 @@ main(int argc, char **argv)
1758 batchmode = 1; 1762 batchmode = 1;
1759 addargs(&args, "-obatchmode yes"); 1763 addargs(&args, "-obatchmode yes");
1760 break; 1764 break;
1761 case 'P': 1765 case 'D':
1762 sftp_direct = optarg; 1766 sftp_direct = optarg;
1763 break; 1767 break;
1764 case 'R': 1768 case 'R':