Subject: bin/449: ftp does not recognize any options
To: None <gnats-admin>
From: None <arndt@mailhost.uni-koblenz.de>
List: netbsd-bugs
Date: 08/31/1994 10:05:24
>Number:         449
>Category:       bin
>Synopsis:       ftp does not recognize any options
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 31 10:05:22 1994
>Originator:     Uwe Arndt
>Organization:
--
Uwe Arndt                              | arndt@uniko.uni-koblenz.de
Universitaet Koblenz,                  |
Rechenzentrum                          | Voice: +49 261 9119-642
Rheinau 1, D-56075 Koblenz, Germany    | Fax:   +49 261 9119-499
EOF
>Release:        
>Environment:
	
System: NetBSD harvey.uni-koblenz.de 1.0_BETA NetBSD 1.0_BETA (HARVEY.audio) #7: Wed Aug 31 11:15:05 MET DST 1994 root@harvey.uni-koblenz.de:/usr/src/sys/arch/i386/compile/HARVEY.audio i386


>Description:
	You can not give any option to ftp. if you try, you will see the
	usage message
>How-To-Repeat:
	ftp -n ftp.netbsd.org
>Fix:
	apply the following patch to /usr/src/usr.bin/ftp/main.c

*** main.c.old     Wed Aug 31 14:05:17 1994
--- main.c      Wed Aug 31 14:04:00 1994
***************
*** 79,85 ****
        autologin = 1;

        while ((ch = getopt(argc, argv, "dgintv")) != EOF) {
!               switch (*cp) {
                case 'd':
                        options |= SO_DEBUG;
                        debug++;
--- 79,85 ----
        autologin = 1;

        while ((ch = getopt(argc, argv, "dgintv")) != EOF) {
!               switch (ch) {
                case 'd':
                        options |= SO_DEBUG;
                        debug++;

>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------