NetBSD Problem Report #36243

From martin@duskware.de  Sun Apr 29 13:28:22 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id F2AED63B960
	for <gnats-bugs@gnats.netbsd.org>; Sun, 29 Apr 2007 13:28:21 +0000 (UTC)
Message-Id: <20070429125420.4C34763B960@narn.NetBSD.org>
Date: Sun, 29 Apr 2007 12:54:20 +0000 (UTC)
From: rudolf@eq.cz
Reply-To: rudolf@eq.cz
To: netbsd-bugs-owner@NetBSD.org
Subject: cgdconfig manual page correction: document -n flag; add -V to -g case; omit -n in -g case
X-Send-Pr-Version: www-1.0

>Number:         36243
>Category:       misc
>Synopsis:       cgdconfig manual page correction: document -n flag; add -V to -g case; omit -n in -g case
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 29 13:30:00 +0000 2007
>Originator:     rudolf
>Release:        netbsd-4
>Organization:
>Environment:
>Description:
- description of the "-n" flag of cgdconfig(8) is missing
- "-n" flag is useless with "-g" (generating paramsfile)
- "-V" flag could be used with "-g" - the verification method is specified in paramsfile

(the -n flag could be useless with more options, I've checked just the -g case)

>How-To-Repeat:
man 8 cgdconfig, inspect /usr/src/sbin/cgdconfig/cgdconfig.c
>Fix:
--- sbin/cgdconfig/cgdconfig.8.orig     2004-10-15 17:25:14.000000000 +0200
+++ sbin/cgdconfig/cgdconfig.8  2007-04-29 14:39:06.000000000 +0200
@@ -63,7 +63,8 @@
 .Ar paramsfile
 .Nm
 .Fl g
-.Op Fl nv
+.Op Fl v
+.Op Fl V Ar vmeth
 .Op Fl i Ar ivmeth
 .Op Fl k Ar kgmeth
 .Op Fl o Ar outfile
@@ -107,6 +108,8 @@
 Specify the IV method (default: encblkno).
 .It Fl k Ar kgmeth
 Specify the key generation method (default: pkcs5_pbkdf2/sha1).
+.It Fl n
+Do not configure/unconfigure the cgd's. Dry run, no action mode.
 .It Fl o Ar outfile
 When generating a
 .Ar paramsfile ,

--- sbin/cgdconfig/cgdconfig.c.orig     2005-06-27 05:07:45.000000000 +0200
+++ sbin/cgdconfig/cgdconfig.c  2007-04-29 14:39:51.000000000 +0200
@@ -126,7 +126,7 @@
        fprintf(stderr, "       %s -U [-nv] [-f configfile]\n", getprogname());
        fprintf(stderr, "       %s -G [-nv] [-i ivmeth] [-k kgmeth] "
            "[-o outfile] paramsfile\n", getprogname());
-       fprintf(stderr, "       %s -g [-nv] [-i ivmeth] [-k kgmeth] "
+       fprintf(stderr, "       %s -g [-v] [-V vmeth] [-i ivmeth] [-k kgmeth] "
            "[-o outfile] alg [keylen]\n", getprogname());
        fprintf(stderr, "       %s -s [-nv] [-i ivmeth] cgd dev alg "
            "[keylen]\n", getprogname());

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.