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
This commit is contained in:
bapt 2017-03-03 12:51:16 +00:00
parent ab84cc661a
commit bca61d04be

View File

@ -350,6 +350,7 @@ fetchParseURL(const char *URL)
fetch_syserr();
return (NULL);
}
u->netrcfd = -2;
/* scheme name */
if ((p = strstr(URL, ":/"))) {