head 1.6; access; symbols pkgsrc-2018Q1:1.5.0.34 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.32 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.30 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.26 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.24 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.22 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.20 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.18 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.16 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.14 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.12 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.10 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.8 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.6 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.4 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.2 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.4.0.16 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.14 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.12 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.10 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.8 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.6 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.4 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.2 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.2.0.28 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.26 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.24 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.22 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.20 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.18 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.16 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.14 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.12 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.10 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.8 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.6 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.4 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.2 pkgsrc-2008Q4-base:1.2; locks; strict; comment @# @; 1.6 date 2018.06.24.16.59.52; author adam; state dead; branches; next 1.5; commitid YWIsUnXsslYsvyHA; 1.5 date 2014.06.15.22.44.15; author tron; state Exp; branches; next 1.4; commitid 0cXt1i1VyoJQEFEx; 1.4 date 2012.05.24.17.01.43; author marino; state Exp; branches; next 1.3; 1.3 date 2012.05.16.17.42.37; author tron; state Exp; branches; next 1.2; 1.2 date 2008.12.16.16.49.52; author tron; state Exp; branches; next 1.1; 1.1 date 2008.12.05.16.31.52; author tron; state Exp; branches; next ; desc @@ 1.6 log @rtorrent: updated to 0.9.7 0.9.7: Bug-fix release while feature-bind is being worked on. Fixed ip filter memory usage. Add space to fmt str in log_gz_file_write. Fix compilation issue with gcc v6.x and empty CXXFLAGS. Fix BEP7 compatibility with IPv6 trackers and IPv4 peers. Include SCGI/XMLRPC example in rtorrent.rc. Handle SIGHUP like SIGINT. Fix Throttle args. Fix missing ranlib - not defined but used. Fix no // are at start of expanded paths. Fix ncurses header include. Fix segfault when viewing a magnet download in the leeching view. @ text @$NetBSD: patch-ad,v 1.5 2014/06/15 22:44:15 tron Exp $ Fix build under DragonFly. --- src/utils/directory.cc.orig 2014-04-21 14:34:45.000000000 +0100 +++ src/utils/directory.cc 2014-06-15 21:07:36.000000000 +0100 @@@@ -44,6 +44,10 @@@@ #include #include +#ifdef __DragonFly__ +#define d_reclen d_namlen +#endif + #include "directory.h" namespace utils { @@@@ -54,7 +58,9 @@@@ if (m_path.empty()) return false; - DIR* d = opendir(rak::path_expand(m_path).c_str()); + std::string path=rak::path_expand(m_path); + + DIR* d = opendir(path.c_str()); closedir(d); return d; @@@@ -65,7 +71,9 @@@@ if (m_path.empty()) throw torrent::input_error("Directory::update() tried to open an empty path."); - DIR* d = opendir(rak::path_expand(m_path).c_str()); + std::string path=rak::path_expand(m_path); + + DIR* d = opendir(path.c_str()); if (d == NULL) return false; @ 1.5 log @Update libtorrent to version 0.13.4 and rtorrent to version 0.9.4. A list of changes is not available unfortunately. But the update seems to prevent crashes with a message like this one: rtorrent: Read past initial payload after incoming encrypted handshake @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @net/rtorrent: Fix DragonFly @ text @d3 5 a7 8 --- src/utils/directory.cc.orig 2012-03-29 13:06:11.000000000 +0000 +++ src/utils/directory.cc @@@@ -38,6 +38,7 @@@@ #include #include +#include #include d10 1 a10 4 @@@@ -45,6 +46,9 @@@@ #ifdef __sun__ #include #endif d14 7 d22 5 a26 1 #include "directory.h" d28 2 a29 1 @@@@ -67,7 +71,9 @@@@ Directory::update(int flags) { @ 1.3 log @Update "libtorrent" package to version 0.13.2 and "rtorrent" package to version 0.9.2. A list of changes is not available unfortunately. But it seems that most of the Solaris related build fixes have been integrated. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.2 2008/12/16 16:49:52 tron Exp $ d3 2 a4 4 Fix build under Solaris and DragonFly. --- src/utils/directory.cc.orig 2012-03-29 14:06:11.000000000 +0100 +++ src/utils/directory.cc 2012-05-14 23:44:08.000000000 +0100 d13 11 a23 1 @@@@ -67,7 +68,9 @@@@ @ 1.2 log @Re-generate these patches because GNU patch doesn't accept them. @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 2 --- src/utils/directory.cc.orig 2008-05-07 13:19:11.000000000 +0100 +++ src/utils/directory.cc 2008-12-16 16:45:58.000000000 +0000 d15 1 a15 1 @@@@ -63,7 +64,9 @@@@ a25 22 @@@@ -73,12 +76,18 @@@@ while ((entry = readdir(d)) != NULL) { if ((flags & update_hide_dot) && entry->d_name[0] == '.') continue; + + std::string full_path = path + '/'; + full_path += entry->d_name; + + struct stat sb; + if (stat(full_path.c_str(), &sb)) + continue; iterator itr = base_type::insert(end(), value_type()); - itr->d_fileno = entry->d_fileno; - itr->d_reclen = entry->d_reclen; - itr->d_type = entry->d_type; + itr->d_fileno = sb.st_ino; + itr->d_type = sb.st_mode; #ifdef DIRENT_NAMLEN_EXISTS_FOOBAR itr->d_name = std::string(entry->d_name, entry->d_name + entry->d_namlen); @ 1.1 log @Add patch from to fix the build under Solaris and DragonFly. Patch provided by Rumko in private e-mail. @ text @d3 2 a4 2 --- src/utils/directory.cc.orig 2008-12-05 13:20:16 +0100 +++ src/utils/directory.cc 2008-12-05 13:27:27 +0100 d13 1 a13 1 @@@@ -63,6 +64,8 @@@@ d17 1 a19 1 - DIR* d = opendir(rak::path_expand(m_path).c_str()); d23 1 @