From nobody@FreeBSD.org  Sun Feb 16 18:36:17 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id A7A0734F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Feb 2014 18:36:17 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 9183913E0
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Feb 2014 18:36:17 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1GIaHnU017431
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Feb 2014 18:36:17 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1GIaHLS017424;
	Sun, 16 Feb 2014 18:36:17 GMT
	(envelope-from nobody)
Message-Id: <201402161836.s1GIaHLS017424@cgiserv.freebsd.org>
Date: Sun, 16 Feb 2014 18:36:17 GMT
From: Tom Prince <tom.prince@hybridcluster.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg bootstrap code fails when connecting to a server that provides a chunked response
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         186822
>Category:       bin
>Synopsis:       pkg(1): pkg bootstrap code fails when connecting to a server that provides a chunked response
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    portmgr
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 16 18:40:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun May 04 04:53:20 UTC 2014
>Originator:     Tom Prince
>Release:        
>Organization:
HybridLogic
>Environment:
>Description:
If the provided PACKAGESITE is a server that provides a chunked response for /Latest/pkg.txz then the bootstrap code will ignore the response body and then fail to extract pkg-static from the empty archive.

(st.size is -1 with chunked so 
236 	while (done < st.size) {
is always false)
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->portmgr 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Feb 24 07:03:59 UTC 2014 
Responsible-Changed-Why:  
reclassify and assign.  While here, remove stray dfilter message. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186822 
>Unformatted:
