[afnog] xinetd bug?

jaco engelbrecht bje at serendipity.org.za
Sun May 27 12:33:37 UTC 2007


Hi Mark,

On 27 May 2007, at 12:39, Mark Tinka wrote:

> Hello all.
>
> Uncertain if this is a bug, but been experiencing "Bad FD
> errors" with 'xinetd' since I upgraded the box running xinetd
> from FreeBSD-6.0 to FreeBSD-6.2. '/var/log/messages' gives:
>
> xinetd[60715]: warning: can't get client address: Bad file
> descriptor
> xinetd[60715]: fcntl( 0, clear close-on-exec ) failed: Bad
> file descriptor (errno = 9)
> xinetd[60715]: dup2( 0, 0 ) failed: Bad file descriptor (errno
> = 9)

I ran into similar issues just now when I tried to install it, to see  
if I can replicate your problem.

After some fiddling, IPv4 tftp transfers seems to be working fine now  
with the configuration below.

Can you try this?

--
[root at tsogang /usr/local/etc]# less xinetd.conf
defaults
{
         instances   = 25
         log_type    = FILE /var/log/servicelog
         log_on_success = HOST PID
         log_on_failure = HOST
         per_source  = 5
}

service tftp
{
         flags       = NAMEINARGS
         socket_type = dgram
         protocol    = udp
         wait        = yes
         user        = root
         server      = /usr/libexec/tftpd
         server_args = tftpd -l -s /tftpboot
}
--

[root at tsogang /usr/local/etc]# uname -r
6.2-STABLE

[root at tsogang /tmp]# tftp 127.0.0.1
tftp> get TSOGANG
Received 11565 bytes in 0.0 seconds
tftp> quit
[root at tsogang /tmp]# ls -al TSOGANG
-rw-r--r--  1 root  wheel  11257 May 27 13:30 TSOGANG

Cheers,
Jaco

-- 
bje at serendipity.org.za
the faculty of making fortunate discoveries



More information about the afnog mailing list