blob: b3fb734ba129a448a55d26a3e63a14397dab6254 (
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
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;
+ }
}
}
|