1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

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

This commit is contained in:
Charles Kerr 2008-02-20 11:36:42 +00:00
parent 5d2dcc0c01
commit e053f6c59d

View file

@ -72,7 +72,10 @@ getFiles( const char * dir,
{
struct FileList * node = tr_new( struct FileList, 1 );
node->size = sb.st_size;
node->filename = tr_strdup( buf );
if( ( buf[0]=='.' ) && ( buf[1]=='/' ) )
node->filename = tr_strdup( buf + 2 );
else
node->filename = tr_strdup( buf );
node->next = list;
list = node;
}