SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
net/transmission/patches/patch-cli_cli_cc
Normal file
14
net/transmission/patches/patch-cli_cli_cc
Normal file
|
@ -0,0 +1,14 @@
|
|||
PR 5424 - fix from upstream
|
||||
Index: cli/cli.cc
|
||||
--- cli/cli.cc.orig
|
||||
+++ cli/cli.cc
|
||||
@@ -257,7 +257,8 @@ int tr_main(int argc, char* argv[])
|
||||
|
||||
tr_ctorSetPaused(ctor, TR_FORCE, false);
|
||||
|
||||
- if (tr_ctorSetMetainfoFromFile(ctor, torrentPath, nullptr) || tr_ctorSetMetainfoFromMagnetLink(ctor, torrentPath, nullptr))
|
||||
+ if (tr_sys_path_exists(torrentPath) ? tr_ctorSetMetainfoFromFile(ctor, torrentPath, nullptr) :
|
||||
+ tr_ctorSetMetainfoFromMagnetLink(ctor, torrentPath, nullptr))
|
||||
{
|
||||
// all good
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue