mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk daemon) #1671: transmission-remote --get option not including all files
This commit is contained in:
+1
-14
@@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user