Bug 81586 - net-ftp/ftp with SSL support segfaults on -z option misuse
Bug#: 81586 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: keso@impul.se
Component: Applications
URL: 
Summary: net-ftp/ftp with SSL support segfaults on -z option misuse
Keywords:  
Status Whiteboard: 
Opened: 2005-02-11 00:29 0000
Description:   Opened: 2005-02-11 00:29 0000
When compiled with SSL support, the ftp client (net-ftp/ftp) dumps core when
run as "ftp -z".

The -z option expects an argument, but the existence of one is never checked
before "using" it.

Reproducible: Always
Steps to Reproduce:
ftp -z
Actual Results:  
Segmentation fault

------- Comment #1 From Andreas Kling 2005-02-11 00:33:19 0000 -------
Created an attachment (id=50986) [details]
Patch that solves problem

Exits with an error message if -z is specified without an argument.

------- Comment #2 From SpanKY 2005-02-11 16:18:23 0000 -------
added 0.17-r4 with the fix, thanks :)