Subject: bin/5910: sysinst exec's `route -f', but that is an error.
To: None <gnats-bugs@gnats.netbsd.org>
From: R. C. Dowdeswell <elric@imrryr.org>
List: netbsd-bugs
Date: 08/04/1998 17:20:03
>Number:         5910
>Category:       bin
>Synopsis:       sysinst exec's `route -f', but that is an error.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug  4 17:35:00 1998
>Last-Modified:
>Originator:     R. C. Dowdeswell
>Organization:
	The Fall of Imrryr
>Release:        Aug 3 1998
>Environment:
	
System: NetBSD arioch 1.3 NetBSD 1.3 (ARIOCH) #0: Mon Jul 13 12:58:46 PDT 1998 elric@arioch:/usr/src/sys/arch/i386/compile/ARIOCH i386

(This isn't the version of the OS I's checking.)

>Description:

On line 247 of src/distrib/utils/sysinst/net.c, we have:

		run_prog("/sbin/route -f > /dev/null 2> /dev/null");

but route -f is not a valid use of route.

>How-To-Repeat:

Well, I was just wondering through the code and noticed this.  I haven't
really thought about symptoms, except to note that it really isn't what
was intended.

>Fix:

I am guessing that one wants to:

$ vi net.c
247G0/-f^McWflush^[ZZ

Basically replace the -f with a flush.
>Audit-Trail:
>Unformatted: