pkgsrc/net/rtorrent/patches/patch-src_main.cc
adam e26603ffce 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.
2018-06-24 16:59:52 +00:00

24 lines
639 B
C++

$NetBSD: patch-src_main.cc,v 1.1 2018/06/24 16:59:52 adam Exp $
Fix handling of command line options.
--- src/main.cc.orig 2018-06-07 04:25:26.000000000 +0000
+++ src/main.cc
@@ -441,8 +441,6 @@ main(int argc, char** argv) {
}
#endif
- int firstArg = parse_options(argc, argv);
-
if (OptionParser::has_flag('n', argc, argv)) {
lt_log_print(torrent::LOG_WARN, "Ignoring rtorrent.rc.");
} else {
@@ -459,6 +457,8 @@ main(int argc, char** argv) {
}
}
+ int firstArg = parse_options(argc, argv);
+
control->initialize();
// Load session torrents and perform scheduled tasks to ensure