summaryrefslogtreecommitdiff
path: root/net/rtorrent/patches/patch-ag
blob: d740383384444396a56974b93ed5543389f637c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ag,v 1.2 2012/05/16 17:42:37 tron Exp $

Fix handling of command line options. Please look here for details:

http://libtorrent.rakshasa.no/ticket/2657

--- src/main.cc.orig	2012-03-20 15:09:58.000000000 +0000
+++ src/main.cc	2012-05-14 23:44:41.000000000 +0100
@@ -843,14 +843,14 @@
     }
 #endif
 
-    int firstArg = parse_options(control, argc, argv);
-
     if (OptionParser::has_flag('n', argc, argv)) {
       lt_log_print(torrent::LOG_WARN, "Ignoring ~/.rtorrent.rc.");
     } else {
       rpc::parse_command_single(rpc::make_target(), "try_import = ~/.rtorrent.rc");
     }
 
+    int firstArg = parse_options(control, argc, argv);
+
     control->initialize();
 
     // Load session torrents and perform scheduled tasks to ensure