From nobody@FreeBSD.org  Fri Feb 24 19:15:38 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AB95616A420
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Feb 2006 19:15:38 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5531743D46
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Feb 2006 19:15:38 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1OJFbY8034111
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Feb 2006 19:15:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k1OJFbKD034110;
	Fri, 24 Feb 2006 19:15:37 GMT
	(envelope-from nobody)
Message-Id: <200602241915.k1OJFbKD034110@www.freebsd.org>
Date: Fri, 24 Feb 2006 19:15:37 GMT
From: Andrew Grillet <andrew@grillet.co.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tftpd not working in 5.5_RC
X-Send-Pr-Version: www-2.3

>Number:         93804
>Category:       bin
>Synopsis:       tftpd(8) not working in 5.5_RC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 24 19:20:03 GMT 2006
>Closed-Date:    Wed May 10 15:08:59 GMT 2006
>Last-Modified:  Wed May 10 15:08:59 GMT 2006
>Originator:     Andrew Grillet
>Release:        5.5_RC
>Organization:
Grillet family
>Environment:
FreeBSD dayton.grillet.home 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #2: Thu Feb 23 23:25:00 GMT 2006     root@dayton.grillet.home:/usr/obj/usr/src/sys/DAYTON  i386
              
>Description:
tftpf fails repeatedly with error logged as "socket operation on non-socket". Googling reveals the fix is to rebuild world, as kernel is out of sync wiht the rest.

did:

<configure>
make buildworld
make buildkernel KERNCONF=DAYTON
make installkernel KERNCONF=DAYTON
<reboot>
make installworld KERNCONF=DAYTON
<reboot>

problem still there.


              
>How-To-Repeat:

<enable tftpd in inetd.conf or from command line do>

/usr/libexec/tftpd -l -s /tftpboot

<create /tftpboot and insert a file> 
<attempt a tftp get of the file from another *BSD machine.>
<visit /var/log/xferlog and see the last line.>

              
>Fix:
I wish I had a fix.

              
>Release-Note:
>Audit-Trail:
Adding to audit trail from misfiled PR bin/93804:

Date: Sat, 25 Feb 2006 18:36:40 +0000
From: Andrew Grillet <andrew@grillet.co.uk>

 I can confirm that tftpd also does not work on sparc64 in
 version 6.0.
 
 Andrew

From: Maxim Konovalov <maxim@macomnet.ru>
To: Andrew Grillet <andrew@grillet.co.uk>
Cc: bug-followup@freebsd.org
Subject: bin/93804
Date: Fri, 14 Apr 2006 20:18:29 +0400 (MSD)

 Andrew,
 
 I can't check on sparc64 but on my i386 machine tftpd works OK.
 
 Could you please repeat the following steps in your enviroment and
 show the results.  Please note you _cannot_ run tftpd from the command
 line.
 
 [root@sonnie ~]# grep ^tftp /etc/inetd.conf
 tftp    dgram   udp     wait    root    /usr/libexec/tftpd      tftpd
 -l -s /tftpboot
 [root@sonnie ~]# killall -HUP inetd
 [root@sonnie ~]# mkdir /tftpboot
 [root@sonnie ~]# cp /etc/hosts /tftpboot
 [root@sonnie ~]# cd /tmp
 [root@sonnie /tmp]# tftp localhost
 tftp> get hosts
 Received 1420 bytes in 0.2 seconds
 [root@sonnie /tmp]# md5 hosts /etc/hosts
 MD5 (hosts) = 5ebd3561c607ca1dd3654ea4e454704c
 MD5 (/etc/hosts) = 5ebd3561c607ca1dd3654ea4e454704c
 
 -- 
 Maxim Konovalov
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Wed May 10 15:08:00 UTC 2006 
State-Changed-Why:  
Feedback timeout.  Failed to reproduce.  It seems it is just an 
incorrect tftpd(8) usage. 

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