Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp Fix downloads of local files using file:// URLs
details: https://anonhg.NetBSD.org/src/rev/1b56df904ebb
branches: trunk
changeset: 342689:1b56df904ebb
user: wiz <wiz%NetBSD.org@localhost>
date: Tue Jan 05 11:41:00 2016 +0000
description:
Fix downloads of local files using file:// URLs
Previously it would error out in copyurlinfo() when copying a NULL port.
diffstat:
usr.bin/ftp/fetch.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 9a09cff5cb6d -r 1b56df904ebb usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c Tue Jan 05 11:33:18 2016 +0000
+++ b/usr.bin/ftp/fetch.c Tue Jan 05 11:41:00 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fetch.c,v 1.219 2015/12/17 20:36:36 christos Exp $ */
+/* $NetBSD: fetch.c,v 1.220 2016/01/05 11:41:00 wiz 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.219 2015/12/17 20:36:36 christos Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.220 2016/01/05 11:41:00 wiz Exp $");
#endif /* not lint */
/*
@@ -424,6 +424,7 @@
} else if (STRNEQUAL(url, FILE_URL)) {
url += sizeof(FILE_URL) - 1;
ui->utype = FILE_URL_T;
+ tport = "";
#ifdef WITH_SSL
} else if (STRNEQUAL(url, HTTPS_URL)) {
url += sizeof(HTTPS_URL) - 1;
Home |
Main Index |
Thread Index |
Old Index