svn commit: r449403 - in head/net-p2p/mktorrent: . files

Christian Weisgerber naddy at FreeBSD.org
Thu Sep 7 15:19:53 UTC 2017


Author: naddy
Date: Thu Sep  7 15:19:51 2017
New Revision: 449403
URL: https://svnweb.freebsd.org/changeset/ports/449403

Log:
  Restore the maximum piece size of 2^30 introduced in r435987.
  
  PR:		221717
  Reported by:	Anton Sayetsky

Added:
  head/net-p2p/mktorrent/files/
  head/net-p2p/mktorrent/files/patch-init.c   (contents, props changed)
Modified:
  head/net-p2p/mktorrent/Makefile

Modified: head/net-p2p/mktorrent/Makefile
==============================================================================
--- head/net-p2p/mktorrent/Makefile	Thu Sep  7 14:48:40 2017	(r449402)
+++ head/net-p2p/mktorrent/Makefile	Thu Sep  7 15:19:51 2017	(r449403)
@@ -4,6 +4,7 @@
 PORTNAME=	mktorrent
 PORTVERSION=	1.1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	net-p2p
 
 MAINTAINER=	ports at FreeBSD.org

Added: head/net-p2p/mktorrent/files/patch-init.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/mktorrent/files/patch-init.c	Thu Sep  7 15:19:51 2017	(r449403)
@@ -0,0 +1,15 @@
+--- init.c.orig	2017-09-07 14:49:58 UTC
++++ init.c
+@@ -512,10 +512,10 @@ EXPORT void init(metafile_t *m, int argc
+ 
+ 	/* set the correct piece length.
+ 	   default is 2^18 = 256kb. */
+-	if (m->piece_length < 15 || m->piece_length > 28) {
++	if (m->piece_length < 15 || m->piece_length > 30) {
+ 		fprintf(stderr,
+ 			"The piece length must be a number between "
+-			"15 and 28.\n");
++			"15 and 30.\n");
+ 		exit(EXIT_FAILURE);
+ 	}
+ 	m->piece_length = 1 << m->piece_length;


More information about the svn-ports-all mailing list