Changeset 5084


Ignore:
Timestamp:
Feb 20, 2008, 11:36:41 AM (14 years ago)
Author:
charles
Message:

(1.0x) #714: transmissioncli creates invalid torrent files when given relative pathnames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0x/libtransmission/makemeta.c

    r4404 r5084  
    7474        struct FileList * node = tr_new( struct FileList, 1 );
    7575        node->size = sb.st_size;
    76         node->filename = tr_strdup( buf );
     76        if( ( buf[0]=='.' ) && ( buf[1]=='/' ) )
     77            node->filename = tr_strdup( buf + 2 );
     78        else
     79            node->filename = tr_strdup( buf );
    7780        node->next = list;
    7881        list = node;
Note: See TracChangeset for help on using the changeset viewer.