]> andersk Git - openssh.git/blobdiff - sftp.c
- djm@cvs.openbsd.org 2009/08/13 01:11:19
[openssh.git] / sftp.c
diff --git a/sftp.c b/sftp.c
index 798a72edba67f118a2ed306598b114cfdbd2077d..4c1d553896742fbe7daac16c42e8bbccfb9d80b2 100644 (file)
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.108 2009/08/12 00:13:00 djm Exp $ */
+/* $OpenBSD: sftp.c,v 1.109 2009/08/13 01:11:19 djm Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
  *
@@ -1707,7 +1707,8 @@ main(int argc, char **argv)
        ll = SYSLOG_LEVEL_INFO;
        infile = stdin;
 
-       while ((ch = getopt(argc, argv, "1246hqvCc:i:o:s:S:b:B:F:P:R:")) != -1) {
+       while ((ch = getopt(argc, argv,
+           "1246hqvCc:D:i:o:s:S:b:B:F:P:R:")) != -1) {
                switch (ch) {
                /* Passed through to ssh(1) */
                case '4':
@@ -1726,6 +1727,9 @@ main(int argc, char **argv)
                        showprogress = 0;
                        addargs(&args, "-%c", ch);
                        break;
+               case 'P':
+                       addargs(&args, "-oPort %s", optarg);
+                       break;
                case 'v':
                        if (debug_level < 3) {
                                addargs(&args, "-v");
@@ -1758,7 +1762,7 @@ main(int argc, char **argv)
                        batchmode = 1;
                        addargs(&args, "-obatchmode yes");
                        break;
-               case 'P':
+               case 'D':
                        sftp_direct = optarg;
                        break;
                case 'R':
This page took 0.031678 seconds and 4 git commands to generate.