Subject: bin/28276: setkey(8) 's -l option doesn't function as expected in all scenarios
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <jeffi@rcn.com>
List: netbsd-bugs
Date: 11/13/2004 06:17:01
>Number:         28276
>Category:       bin
>Synopsis:       setkey(8) 's -l option doesn't function as expected in all scenarios
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 13 06:17:01 +0000 2004
>Originator:     Jeff Ito
>Release:        NetBSD 2.99.10
>Organization:
>Environment:
NetBSD netbsd 2.99.10 NetBSD 2.99.10 (LAB) #0: Fri Nov  5 11:44:43 EST 2004 
>Description:
setkey's -l option does not seem to function as advertised.

in sendkeymsg() exists the following code:
        if (f_forever) {
                fflush(stdout);
                sleep(1);
                goto again;
        }

however this is never executed when sysctldump() (and apparently dumpkernfs()) is the utilized method.  These functions don't account for f_forever's state.
>How-To-Repeat:

{122} sudo ./setkey -D -l


>Fix:
unknown