Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2017 15:19:51 +0000 (UTC)
From:      Christian Weisgerber <naddy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r449403 - in head/net-p2p/mktorrent: . files
Message-ID:  <201709071519.v87FJpIi099076@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709071519.v87FJpIi099076>