Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/usr.bin/ftp Pull up following revision(s) (requested by n...



details:   https://anonhg.NetBSD.org/src/rev/e6ae2df9a3f2
branches:  netbsd-7
changeset: 799891:e6ae2df9a3f2
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Apr 29 19:03:44 2016 +0000

description:
Pull up following revision(s) (requested by nonaka in ticket #1153):
        usr.bin/ftp/fetch.c: revision 1.223
PR/51043: Yorick Hardy: ftp(1) should use the port number for CONNECT

diffstat:

 usr.bin/ftp/fetch.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 80888fa2a0b9 -r e6ae2df9a3f2 usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c       Fri Apr 29 19:00:40 2016 +0000
+++ b/usr.bin/ftp/fetch.c       Fri Apr 29 19:03:44 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fetch.c,v 1.205.4.3 2016/03/13 11:49:14 martin Exp $   */
+/*     $NetBSD: fetch.c,v 1.205.4.4 2016/04/29 19:03:44 snj Exp $      */
 
 /*-
  * Copyright (c) 1997-2015 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.205.4.3 2016/03/13 11:49:14 martin Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.205.4.4 2016/04/29 19:03:44 snj Exp $");
 #endif /* not lint */
 
 /*
@@ -847,8 +847,8 @@
        } else
                h = ui->host;
 
-       fetch_printf(fin, "CONNECT %s:%s HTTP/1.1\r\n", h, ui->port);
-       fetch_printf(fin, "Host: %s:%s\r\n", h, ui->port);
+       fetch_printf(fin, "CONNECT %s:%d HTTP/1.1\r\n", h, ui->portnum);
+       fetch_printf(fin, "Host: %s:%d\r\n", h, ui->portnum);
 }
 #endif
 



Home | Main Index | Thread Index | Old Index