From owner-freebsd-ports@FreeBSD.ORG Sun Oct 9 12:43:35 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE07716A41F for ; Sun, 9 Oct 2005 12:43:35 +0000 (GMT) (envelope-from thomas@hardy-5.tmseck.homedns.org) Received: from smtp3.netcologne.de (smtp3.netcologne.de [194.8.194.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DA7E43D49 for ; Sun, 9 Oct 2005 12:43:35 +0000 (GMT) (envelope-from thomas@hardy-5.tmseck.homedns.org) Received: from laurel.tmseck.homedns.org (xdsl-213-196-241-84.netcologne.de [213.196.241.84]) by smtp3.netcologne.de (Postfix) with SMTP id E79D4675CC for ; Sun, 9 Oct 2005 14:43:33 +0200 (CEST) Received: (qmail 2891 invoked from network); 9 Oct 2005 12:43:55 -0000 Received: from unknown (HELO hardy-5.tmseck.homedns.org) (192.168.1.22) by 0 with SMTP; 9 Oct 2005 12:43:55 -0000 Received: from hardy-5.tmseck.homedns.org (localhost.tmseck.homedns.org [127.0.0.1]) by hardy-5.tmseck.homedns.org (8.13.4/8.13.4) with ESMTP id j99ChWsx028981; Sun, 9 Oct 2005 14:43:32 +0200 (CEST) (envelope-from thomas@hardy-5.tmseck.homedns.org) Received: (from thomas@localhost) by hardy-5.tmseck.homedns.org (8.13.4/8.13.4/Submit) id j99ChVwN028980; Sun, 9 Oct 2005 14:43:31 +0200 (CEST) (envelope-from thomas) Date: Sun, 9 Oct 2005 14:43:31 +0200 (CEST) Message-Id: <200510091243.j99ChVwN028980@hardy-5.tmseck.homedns.org> From: tmseck-lists@netcologne.de (Thomas-Martin Seck) To: freebsd-ports@freebsd.org In-Reply-To: <20051009111557.A89611@p-i-n.com> X-Newsgroups: gmane.os.freebsd.devel.ports X-Attribution: tms Subject: Re: distfiles / md5 / plain-text via FTP proxy X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 12:43:36 -0000 * Raphael H. Becker [gmane.os.freebsd.devel.ports]: > On Wed, Sep 28, 2005 at 10:03:28AM -0400, Kris Kennaway wrote: >> I'd like to know one too. This is arguably a bug in squid, since it >> should not be rewriting content without me telling it to. Indeed. > No workaround, but how to repeat: > > $ ftp_proxy="" fetch -o gdevlx50.c_noproxy \ > "ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ghostscript/gdevlx50.c" > > $ ftp_proxy="http://localhost:3128/" fetch -o gdevlx50.c_proxy \ > "ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ghostscript/gdevlx50.c" > > $ wc -lc gdevlx50.c_* > 2732 99428 gdevlx50.c_noproxy > 2732 102160 gdevlx50.c_proxy > > $ file gdevlx50.c_* > gdevlx50.c_noproxy: ASCII C program text > gdevlx50.c_proxy: ASCII C program text, with CRLF line terminators > > $ md5 gdevlx50.c_* > MD5 (gdevlx50.c_noproxy) = 081e355c866316a56fbbff5b59f2b7cf > MD5 (gdevlx50.c_proxy) = 06b0518d1d0aeedd61d4c7d27921cf62 > > $ grep gdevlx50.c /usr/ports/print/ghostscript-gnu/distinfo > MD5 (ghostscript/gdevlx50.c) = 081e355c866316a56fbbff5b59f2b7cf > SIZE (ghostscript/gdevlx50.c) = 99428 > > All plain text distfiles fetched using ftp through squid are affected! I can confirm this behaviour with FreeBSD's ftpd and squid-2.5.11. I cannot however confirm this with squid + ftp/vsftpd, possibly because vsftpd ignores ASCII requests by default. I do not think that there is currently a way to force squid to always request binary transfers, so you might want to file a bug report against squid to get this feature in.