Subject: bin/7388: ping turns on nokerninfo and sometimes leaves it set
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 04/14/1999 15:21:05
>Number:         7388
>Category:       bin
>Synopsis:       ping turns on nokerninfo and sometimes leaves it set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 14 15:20:01 1999
>Last-Modified:
>Originator:     Dave Huang
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 22 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD 1.4_ALPHA as of April 12, 1999
>Environment:
System: NetBSD gedd.metonymy.com 1.4_ALPHA NetBSD 1.4_ALPHA (GEDD) #572: Sat Apr 10 20:47:32 CDT 1999 khym@dahan.metonymy.com:/usr/src.local/sys/arch/mac68k/compile/GEDD mac68k


>Description:
	ping sets the tty's nokerninfo bit very early on, but only restores
the original setting if the ping actually started.

>How-To-Repeat:
% stty
speed 9600 baud;
lflags: echoe echok echoke echoctl pendin
iflags: istrip
oflags: onocr onlret
cflags: cs8 -parenb
status
^T
% ping
Usage:
ping [-dDfLnoPqQrRv] [-c count] [-g gateway] [-h host] [-i interval] [-I addr]
     [-l preload] [-p pattern] [-s size] [-t tos] [-T ttl] [-w maxwait] host
% stty
speed 9600 baud;
lflags: echoe echok echoke echoctl pendin nokerninfo
iflags: istrip
oflags: onocr onlret
cflags: cs8 -parenb
status
^T
% stty -nokerninfo
% ping nonexistent
ping: Cannot resolve "nonexistent" (Unknown host)
% stty
speed 9600 baud;
lflags: echoe echok echoke echoctl pendin nokerninfo
iflags: istrip
oflags: onocr onlret
cflags: cs8 -parenb
status
^T

>Fix:
	Sorry, none supplied :)
>Audit-Trail:
>Unformatted: