Subject: bin/28624: cgdconfig with no keygen entry fails silently
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Andreas Gustafsson <gson@gson.org>
List: netbsd-bugs
Date: 12/12/2004 09:51:00
>Number:         28624
>Category:       bin
>Synopsis:       cgdconfig with no keygen entry fails silently
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 12 09:51:00 +0000 2004
>Originator:     Andreas Gustafsson
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD guava.araneus.fi 2.0_BETA NetBSD 2.0_BETA (GUAVAMP) #3: Tue Sep 28 10:41:58 EEST 2004 gson@guava.araneus.fi:/usr/src-2.0/sys/arch/i386/compile/GUAVAMP i386
Architecture: i386
Machine: i386
>Description:

If the CGD paramsfile does not contain a keygen entry, cgdconfig will
fail without printing any error message to indicate what is wrong.

>How-To-Repeat:

Create a CGD paramsfile with no keygen entry and run cgdconfig
using that paramsfile.  An empty file will do.  For example:

   true >/etc/cgd/foo
   cgdconfig cgd0 /dev/foo

Notice that the cgdconfig command prints no diagnostic output even
though it fails to configure the cgd and exits with a status of 255.

>Fix:

None provided.