Changeset 5085


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

#714: libT creates invalid torrent files when given makemeta is given a non-absolute pathname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

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