shithub: riscv

Download patch

ref: cbf003434b08faa8836046c8d04dc3d0d8fafac4
parent: 99e2d549e86cbdf4c364a476b8eb008c8fcff6ec
author: Jacob Moody <moody@posixcafe.org>
date: Sun Nov 26 09:03:31 EST 2023

ip/torrent: fix webseed when there is only one defined in the torrent file

--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -1263,7 +1263,7 @@
 
 	if(d = dlook(torrent, "url-list")){
 		if(d->typ == 's')
-			wlist = scons(dstr(d->val), wlist);
+			wlist = scons(dstr(d), wlist);
 		else for(l = d; l && l->typ == 'l'; l = l->next)
 			wlist = scons(dstr(l->val), wlist);
 		/* make wlist into a ring */