From owner-svn-ports-all@freebsd.org Thu Sep 7 15:19:53 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FA54E222AC; Thu, 7 Sep 2017 15:19:53 +0000 (UTC) (envelope-from naddy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E58C66C1F; Thu, 7 Sep 2017 15:19:52 +0000 (UTC) (envelope-from naddy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v87FJp8X099078; Thu, 7 Sep 2017 15:19:51 GMT (envelope-from naddy@FreeBSD.org) Received: (from naddy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v87FJpIi099076; Thu, 7 Sep 2017 15:19:51 GMT (envelope-from naddy@FreeBSD.org) Message-Id: <201709071519.v87FJpIi099076@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: naddy set sender to naddy@FreeBSD.org using -f From: Christian Weisgerber Date: Thu, 7 Sep 2017 15:19:51 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: naddy X-SVN-Commit-Paths: in head/net-p2p/mktorrent: . files X-SVN-Commit-Revision: 449403 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2017 15:19:53 -0000 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;