Page MenuHomeFreeBSD

Fix ftp hang in libfetch after rS313974
AbandonedPublic

Authored by bapt on Mar 2 2017, 10:46 AM.
Tags
None
Referenced Files
F132267343: D9860.diff
Wed, Oct 15, 8:26 AM
Unknown Object (File)
Tue, Oct 7, 5:30 PM
Unknown Object (File)
Fri, Sep 26, 12:39 PM
Unknown Object (File)
Wed, Sep 24, 3:26 AM
Unknown Object (File)
Fri, Sep 19, 10:00 AM
Unknown Object (File)
Aug 31 2025, 9:20 AM
Unknown Object (File)
Aug 2 2025, 5:39 AM
Unknown Object (File)
Jul 5 2025, 1:03 PM
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