From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 22 17:20:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AAB6FA91 for ; Mon, 22 Apr 2013 17:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7859817A4 for ; Mon, 22 Apr 2013 17:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3MHK0q2069048 for ; Mon, 22 Apr 2013 17:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3MHK080069047; Mon, 22 Apr 2013 17:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 22 Apr 2013 17:20:00 GMT Resent-Message-Id: <201304221720.r3MHK080069047@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Richard Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AC79CA1C for ; Mon, 22 Apr 2013 17:14:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8681774 for ; Mon, 22 Apr 2013 17:14:54 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3MHEs2q030238 for ; Mon, 22 Apr 2013 17:14:54 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3MHEs15030237; Mon, 22 Apr 2013 17:14:54 GMT (envelope-from nobody) Message-Id: <201304221714.r3MHEs15030237@red.freebsd.org> Date: Mon, 22 Apr 2013 17:14:54 GMT From: Richard To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/178055: tftp / tftpd file transfer ends up with incorrect size X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2013 17:20:00 -0000 >Number: 178055 >Category: bin >Synopsis: tftp / tftpd file transfer ends up with incorrect size >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 22 17:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Richard >Release: 9.1 >Organization: self >Environment: FreeBSD graphene 9.1-RELEASE FreeBSD 9.1-RELEASE #2: Tue Nov 27 03:06:52 UTC 2012 root@darkstar:/usr/obj/pcbsd-build90/fbsd-source/9.1/sys/GENERIC i386 >Description: On transferring large files tftp / tftpd combo fails to transfer correct file; file is truncated on my checks. Use of '/dev/zero' to populate a "bigfile" created a situation that did not exhibit the problem. Use of '/dev/random' to populate a "bigfile" led to situation that did exhibit problem on 2 out of 2 attempts. When I replaced "/usr/libexec/tftpd" with the ports tftp-hpa "/usr/local/libexec/in.tftpd" did resolve the file transfer issue. I'll note that using the "hpa" version led to some confusion with the tftp client: I was forced to disable "options" to allow the tftp client to work - which seemed a bit off to me. >How-To-Repeat: setup server side: > su * enable tftpd in /etc/inetd.conf > cd /tftpboot > dd if=/dev/random of=bigfile bs=21504 count=10000 on same system: > cd /tmp > tftp localhost > get bigfile > ^D > ls -l bigfile >Fix: >Release-Note: >Audit-Trail: >Unformatted: