>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: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"