Author: mmu_man Date: 2010-11-26 01:37:58 +0100 (Fri, 26 Nov 2010) New Revision: 39638 Changeset: http://dev.haiku-os.org/changeset/39638 Modified: haiku/trunk/src/bin/urlwrapper.cpp Log: BUrl::Full() actually doesn't contain the protocol part, add it back for ftp so it understands it's an url. Add it for wget as well, doesn't hurt. Modified: haiku/trunk/src/bin/urlwrapper.cpp =================================================================== --- haiku/trunk/src/bin/urlwrapper.cpp 2010-11-25 23:23:08 UTC (rev 39637) +++ haiku/trunk/src/bin/urlwrapper.cpp 2010-11-26 00:37:58 UTC (rev 39638) @@ -279,6 +279,7 @@ if (proto == "ftp") { BString cmd("ftp "); + cmd << proto << "://"; /* if (user.Length()) cmd << "-l " << user << " "; @@ -328,10 +329,11 @@ return; } - if (proto == "http") { + if (proto == "http" /*|| proto == "ftp"*/) { BString cmd("/bin/wget "); //cmd << url; + cmd << proto << "://"; if (url.HasUser()) cmd << user << "@"; cmd << full;