Page MenuHomeFreeBSD

Fix ftp hang in libfetch after rS313974
AbandonedPublic

Authored by bapt on Mar 2 2017, 10:46 AM.
Tags
None
Referenced Files
F124999266: D9860.id25875.diff
Sat, Aug 2, 5:39 AM
Unknown Object (File)
Sat, Jul 5, 1:03 PM
Unknown Object (File)
Jul 1 2025, 6:12 PM
Unknown Object (File)
Jun 30 2025, 4:57 PM
Unknown Object (File)
Jun 30 2025, 12:31 PM
Unknown Object (File)
Jun 29 2025, 9:44 AM
Unknown Object (File)
Jun 29 2025, 5:18 AM
Unknown Object (File)
Jun 28 2025, 10:14 AM
Subscribers

Details

Reviewers
dim
allanjude
des
Summary

In rS313974, a netrcfd field was added to struct url, to prepare for
capsicumization. The field should be initialized to -2, but this is
only done in fetchMakeURL(), not in fetchParseURL(). Since the ftp
part of libfetch only calls the latter, the netrcfd field is left at
its default value of zero, and fetching ftp:// URLs then hangs after the
server displays its banner, before authentication starts.

Fix this by initializing the netrcfd to -2 in fetchParseURL().

Diff Detail

Event Timeline

dim retitled this revision from to Fix ftp hang in libfetch after rS313974.
dim updated this object.
dim edited the test plan for this revision. (Show Details)
dim added reviewers: des, bapt, allanjude.
bapt abandoned this revision.
bapt edited reviewers, added: dim; removed: bapt.

Already committed