Bug 437296 - TFTP creates new empty file when the file is not found
Summary: TFTP creates new empty file when the file is not found
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: tftp
Version: 4.6
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jiri Skala
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-13 13:24 UTC by Petr Sklenar
Modified: 2014-11-09 22:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-23 14:14:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2008-03-13 13:24:26 UTC
Description of problem:


Version-Release number of selected component (if applicable):
all version of tftp-server, on fedora, on rhel4
for ex: 
#rpm -q tftp tftp-server
tftp-0.39-2.x86_64
tftp-server-0.39-2.x86_64

How reproducible:
always

Steps to Reproduce:
tftp server, its IP = 192.168.76.183
1. #start tftp server
/usr/sbin/in.tftpd -s /tftpboot -l
2. # create file in /tftpboot
ls /tftpboot/
test.test
##>>>>there is only ONE file
--------------------
tftp client:
1.
# tftp 192.168.76.183
tftp> get test.test
tftp> get i_dont_exist
Error code 1: File not found
tftp> quit
2.
# ls test.test -la
-rw-r--r--  1 root devqa7 5 Mar 13 08:30 test.test
# ls i_dont_exist -la
-rw-r--r--  1 root devqa7 0 Mar 13 08:30 i_dont_exist
>>there is empty file with name "i_dont_exist"

Actual results:
it creates new empty file when the file is not found

Expected results:
when file is not found it shouldn't create new empty file with that name

Additional info:
It should be same as FTP sever. FTP server doesn't create new empty file when
that file is not found.


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