mirror of
https://github.com/transmission/transmission
synced 2025-03-13 07:33:02 +00:00
(trunk daemon) #1671: transmission-remote --get option not including all files
This commit is contained in:
parent
22b971b47e
commit
da1b8f03b2
1 changed files with 1 additions and 14 deletions
|
@ -227,20 +227,7 @@ addFiles( tr_benc * args,
|
||||||
}
|
}
|
||||||
if( strcmp( arg, "all" ) )
|
if( strcmp( arg, "all" ) )
|
||||||
{
|
{
|
||||||
const char * walk = arg;
|
tr_rpc_parse_list_str( files, arg, strlen( 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue