Changeset 13794


Ignore:
Timestamp:
Jan 16, 2013, 12:28:11 AM (8 years ago)
Author:
jordan
Message:

(2.7x) backport r13793 for #5215 (a 2.76 regression)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7x/cli/cli.c

    r13772 r13794  
    268268    {
    269269      if (!tr_fileExists (str, NULL))
    270         tr_mkdirp (str, 0700);
    271 
    272       if (tr_fileExists (str, NULL))
    273270        {
    274           tr_bencDictAddStr (&settings, TR_PREFS_KEY_DOWNLOAD_DIR, str);
    275         }
    276       else
    277         {
    278           fprintf (stderr, "Unable to create download directory \"%s\"!\n", str);
    279           return EXIT_FAILURE;
     271          tr_mkdirp (str, 0700);
     272
     273          if (!tr_fileExists (str, NULL))
     274            {
     275              fprintf (stderr, "Unable to create download directory \"%s\"!\n", str);
     276              return EXIT_FAILURE;
     277            }
    280278        }
    281279    }
Note: See TracChangeset for help on using the changeset viewer.