Ignore:
Timestamp:
Jun 8, 2006, 6:42:15 AM (16 years ago)
Author:
joshe
Message:

Ok, I didn't test tr_mkdir() in the other place it was used. Fix it there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/save_torrent_files/libtransmission/inout.c

    r289 r298  
    206206
    207207    int           i;
    208     char        * path;
     208    char        * path, * p;
    209209    struct stat   sb;
    210210    int           file;
     
    217217
    218218        /* Create folders */
    219         if( tr_mkdir( path ) )
    220         {
    221             free( path );
    222             return 1;
     219        if( NULL != ( p = strrchr( path, '/' ) ) )
     220        {
     221            *p = '\0';
     222            if( tr_mkdir( path ) )
     223            {
     224                free( path );
     225                return 1;
     226            }
     227            *p = '/';
    223228        }
    224229
Note: See TracChangeset for help on using the changeset viewer.