(trunk daemon) #1671: transmission-remote --get option not including all files
This commit is contained in:
parent
22b971b47e
commit
da1b8f03b2
|
@ -227,20 +227,7 @@ addFiles( tr_benc * args,
|
|||
}
|
||||
if( strcmp( arg, "all" ) )
|
||||
{
|
||||
const char * walk = arg;
|
||||
while( *walk )
|
||||
{
|
||||
char * p;
|
||||
unsigned long l;
|
||||
errno = 0;
|
||||
l = strtol( walk, &p, 10 );
|
||||
if( errno )
|
||||
break;
|
||||
tr_bencListAddInt( files, l - 1 );
|
||||
if( *p != ',' )
|
||||
break;
|
||||
walk = p + 1;
|
||||
}
|
||||
tr_rpc_parse_list_str( files, arg, strlen( arg ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue