svn commit: r314596 - head/lib/libfetch

Baptiste Daroussin bapt at FreeBSD.org
Fri Mar 3 12:51:17 UTC 2017


Author: bapt
Date: Fri Mar  3 12:51:16 2017
New Revision: 314596
URL: https://svnweb.freebsd.org/changeset/base/314596

Log:
  Properly initialize netrcfd in fetchParseURL
  
  This fixes ftp with fetch(1) which was broken after r313974
  
  Submitted by:	dim
  Reported by:	olivier
  Pointyhat to:	bapt

Modified:
  head/lib/libfetch/fetch.c

Modified: head/lib/libfetch/fetch.c
==============================================================================
--- head/lib/libfetch/fetch.c	Fri Mar  3 12:30:18 2017	(r314595)
+++ head/lib/libfetch/fetch.c	Fri Mar  3 12:51:16 2017	(r314596)
@@ -350,6 +350,7 @@ fetchParseURL(const char *URL)
 		fetch_syserr();
 		return (NULL);
 	}
+	u->netrcfd = -2;
 
 	/* scheme name */
 	if ((p = strstr(URL, ":/"))) {


More information about the svn-src-head mailing list