mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
#714: libT creates invalid torrent files when given makemeta is given a non-absolute pathname
This commit is contained in:
parent
5d2dcc0c01
commit
e053f6c59d
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue