diff options
Diffstat (limited to 'extra/transmission/transmission-2.76-fix-regression.patch')
-rw-r--r-- | extra/transmission/transmission-2.76-fix-regression.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/extra/transmission/transmission-2.76-fix-regression.patch b/extra/transmission/transmission-2.76-fix-regression.patch new file mode 100644 index 000000000..b3fb734ba --- /dev/null +++ b/extra/transmission/transmission-2.76-fix-regression.patch @@ -0,0 +1,26 @@ +Index: branches/2.7x/cli/cli.c +=================================================================== +--- branches/2.7x/cli/cli.c (revision 13784) ++++ branches/2.7x/cli/cli.c (revision 13794) +@@ -268,14 +268,12 @@ + { + if (!tr_fileExists (str, NULL)) +- tr_mkdirp (str, 0700); +- +- if (tr_fileExists (str, NULL)) + { +- tr_bencDictAddStr (&settings, TR_PREFS_KEY_DOWNLOAD_DIR, str); +- } +- else +- { +- fprintf (stderr, "Unable to create download directory \"%s\"!\n", str); +- return EXIT_FAILURE; ++ tr_mkdirp (str, 0700); ++ ++ if (!tr_fileExists (str, NULL)) ++ { ++ fprintf (stderr, "Unable to create download directory \"%s\"!\n", str); ++ return EXIT_FAILURE; ++ } + } + } |