Bug 54405

Summary: all port numbers above 32768 erroneously report
Product: [Retired] Red Hat Linux Reporter: Need Real Name <christopher>
Component: ftpAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-06 05:34:29 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 Need Real Name 2001-10-06 05:34:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0b; Windows NT 5.0; DigExt)

Description of problem:
Works fine in 6.1, but now in 7.1
ftp -i 123.123.123.123 50000
gives that error message.

I think someone must have messed with the code, and accidentally change 
the data type to "signed int" - beats me *why* anyone would be messing 
with this, and make such a silly mistake, and it would get past the 
quality control test suite... there *is* a quality-control test suite, 
isn't there?

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


How reproducible:
Always

Steps to Reproduce:
1. ftp -i 123.123.123.123 50000
	

Actual Results:  123.123.123.123.: bad port number-- 50000

Expected Results:  connected to my ftp server which runs on port 50000

Additional info:

works fine in RedHat 6.1.

Possible security implications:
1. Why did it get changed such that it got broken?  perhaps a diff of the 
6.1 and 7.1 source should be examined for other messups?
2. Since this paramater is obviously not being checked proplery, is there 
something here, or new, that could lead to a buffer problem?

Comment 1 Bernhard Rosenkraenzer 2001-10-23 14:45:10 UTC
I can't reproduce this on a 7.2 system
(ftp-0.17-12).

[bero@spock bero]$ ftp localhost 50000
Connected to localhost (127.0.0.1).
220 spock.home.bero.org FTP server (Version wu-2.6.1-18) ready.
Name (localhost:root):



Comment 2 Bernhard Rosenkraenzer 2001-10-23 14:46:06 UTC
(and yes, there is a QA test suite. But it didn't check for this. It just does 
a couple of standard ftp transfers, port 21)