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, ":/"))) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to