The attached patch should replace the path separator with an underscore. (I should note that when testing on Windows, just downloading a hublist, DC++ (prepatch) would create the file with underscore already and not with a directory.)
** Patch added: "dcpp_utilfilename.diff" https://bugs.launchpad.net/dcplusplus/+bug/395400/+attachment/3765271/+files/dcpp_utilfilename.diff -- You received this bug notification because you are a member of Dcplusplus-team, which is subscribed to DC++. https://bugs.launchpad.net/bugs/395400 Title: Hub lists fail to cache on Linux Status in DC++: Confirmed Bug description: Thrown: FileException: No such file or directory: /home/steven/.dc++/HubLists/http_/hublist.openhublist.org/hublist.xml.bz2 This file cannot be created because it contains '/' in the filename and the sub directories "http_" and "hublist.openhublist.org" do not exist to create hublist.xml.bz2 in. The hub list URL needs to be normalized to a form suitable for both Windows and Linux. For example: http://hublist.openhublist.org/hublist.xml.bz2 -> hublist.openhublist.org#hublist.xml.bz2 Or Util::validateFileName() needs to be split into Util::validateFilePath() and Util::validateFileName() so that validateFileName() can replace PATH_SEPARATORs in the name. This will allow the hublist to be saved as "http__hublist.openhublist.org_hublist.xml.bz2". To manage notifications about this bug go to: https://bugs.launchpad.net/dcplusplus/+bug/395400/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~linuxdcpp-team Post to : linuxdcpp-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~linuxdcpp-team More help : https://help.launchpad.net/ListHelp