Bug 437296

Summary: TFTP creates new empty file when the file is not found
Product: Red Hat Enterprise Linux 4 Reporter: Petr Sklenar <psklenar>
Component: tftpAssignee: Jiri Skala <jskala>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aglotov
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-23 14:14:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.