Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2013 04:44:18 +0000 (UTC)
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r320530 - in head/net-p2p/ctorrent: . files
Message-ID:  <201306110444.r5B4iIG7077015@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dinoex
Date: Tue Jun 11 04:44:18 2013
New Revision: 320530
URL: http://svnweb.freebsd.org/changeset/ports/320530

Log:
  - fix negative int bug
  - take maintainership
  PR:		169283
  Submitted by:	dinoex
  Approved by:	flz
  Obtained from:	http://sourceforge.net/tracker/?func=detail&aid=3159066&group_id=202532&atid=981959

Added:
  head/net-p2p/ctorrent/files/patch-negative-ints   (contents, props changed)
Modified:
  head/net-p2p/ctorrent/Makefile

Modified: head/net-p2p/ctorrent/Makefile
==============================================================================
--- head/net-p2p/ctorrent/Makefile	Tue Jun 11 03:42:47 2013	(r320529)
+++ head/net-p2p/ctorrent/Makefile	Tue Jun 11 04:44:18 2013	(r320530)
@@ -12,7 +12,7 @@ CATEGORIES=	net-p2p
 MASTER_SITES=	http://www.rahul.net/dholmes/ctorrent/
 DISTNAME=	${PORTNAME}-dnh${PORTVERSION}
 
-MAINTAINER=	flz@FreeBSD.org
+MAINTAINER=	dinoex@FreeBSD.org
 COMMENT=	BitTorrent Client written in C for FreeBSD and Linux
 
 GNU_CONFIGURE=	yes

Added: head/net-p2p/ctorrent/files/patch-negative-ints
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/ctorrent/files/patch-negative-ints	Tue Jun 11 04:44:18 2013	(r320530)
@@ -0,0 +1,15 @@
+allow negative integers ... should fix random "error, initial meta info failed"
+
+--- bencode.cpp.orig
++++ bencode.cpp
+@@ -44,6 +44,10 @@
+     p++; len--;
+   }
+ 
++  if( *p == '-'){
++    p++; len--;
++  }
++
+   for(psave = p; len && isdigit(*p); p++,len--) ;
+ 
+   if(!len || MAX_INT_SIZ < (p - psave) || *p != endchar) return 0;



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