On Fri, 6 May 2005, Jari Petter Sundell wrote:
> This has never happened to me... Does this happen on all torrents you try,
> or just some from a special source? Perhaps the torrents you use are
> multi-file torrents with only a single file? Not sure what i would
> consider this a bug or feature if it is what is happening. ;)
Turns out this only happens when you use the -d flag to set the
destination directory, which i haven't tested much. ;) Attached a patch
that fixes this.
Rakshasa
Furu-Furu-Furu Moon!
-------------- next part --------------
Index: rtorrent/src/core/manager.cc
===================================================================
--- rtorrent/src/core/manager.cc (revision 434)
+++ rtorrent/src/core/manager.cc (working copy)
@@ -183,7 +183,7 @@
(*itr)->get_download().set_ip(m_dns);
if (!m_defaultRoot.empty())
- (*itr)->get_download().set_root_dir(m_defaultRoot + ((*itr)->get_download().get_entry_size() ? (*itr)->get_download().get_name() : ""));
+ (*itr)->get_download().set_root_dir(m_defaultRoot + ((*itr)->get_download().get_entry_size() > 1 ? (*itr)->get_download().get_name() : ""));
start(*itr);
m_downloadStore.save(*itr);