Bug 57562 - tftp-server fails to send file on the form host:file
Summary: tftp-server fails to send file on the form host:file
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tftp (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: i386 Linux
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-12-15 21:21 UTC by Frode Tennebø
Modified: 2007-04-18 16:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-18 20:28:29 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Frode Tennebø 2001-12-15 21:21:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.79 [en] (X11; U; Linux 2.4.9-13custom i686)

Description of problem:
I believe this is a fault with in.tftp and not with the client. I'm trying
to set up an X-Terminal which receives it's server code from the
tftp-server. Since this does not work I tried the tftp client with various
commands. It appears that I have to either implicit connect on the
command-line (e. #tftp localhost) or explicit (ie. tftp> connect

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Make /tftpboot/some-file
2. Start in.tftpd from xinetd
3. tftp
4. get localhost:/some-file 

Actual Results:  [ft@leia ft]$ tftp
tftp> verbose
Verbose mode on.
tftp> get localhost:/hds-fx/config/config.fx
getting from localhost:/hds-fx/config/config.fx to config.fx [netascii]
tftp: sendto: Invalid argument
tftp> get "localhost:/hds-fx/config/config.fx"
tftp: "localhost: Unknown host
tftp> get "localhost":/hds-fx/config/config.fx
tftp: "localhost": Unknown host
tftp> get
getting from to config.fx [netascii]
tftp: sendto: Invalid argument
tftp> get
getting from to config.fx [netascii]
tftp: sendto: Invalid argument

Expected Results:  tftp> connect
tftp> get /hds-fx/config/config.fx
getting from to config.fx [netascii]
Received 1593 bytes in 0.0 seconds [inf bits/sec]

Additional info:

Since my X-Terminal only supports the implicit form, I'm not able to

Comment 1 Elliot Lee 2001-12-18 20:51:16 UTC
I believe this is a bug in the client. Here's the patch I made:
--- ./main.c.sopwith	Tue Dec 18 15:32:16 2001
+++ ./main.c	Tue Dec 18 15:37:13 2001
@@ -162,6 +162,7 @@
	fprintf(stderr, "tftp: udp/tftp: unknown service\n");
port = sp->s_port;
 	f = socket(AF_INET, SOCK_DGRAM, 0);
 	if (f < 0) {
	perror("tftp: socket");

Comment 2 Frode Tennebø 2001-12-18 22:09:07 UTC
Darn. It solves the bug but in the wrong place. :/ It does not explain why my 
X-terminal won't download from the tftp-server......

Perhaps you can tell me why tftpd won't log anything to syslog? I have the 
following line in /etc/syslog:

authpriv.*                                              /var/log/secure

But the only thing that gets logged is:

Dec 18 23:03:51 leia xinetd[7121]: START: tftp pid=25551 from=

Comment 3 Frode Tennebø 2001-12-25 23:02:22 UTC
It turned out that one of the ports on my hub was broken. However, I still 
don't get syslog-ed the precompiled tftpd. It works with my own compiled 
version, but that one won't transfer any files. Mighty strange.....I need to 
investigate some more if you don't have any hints....?

Note You need to log in before you can comment on or make changes to this bug.