NetBSD Problem Report #36243

From  Sun Apr 29 13:28:22 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id F2AED63B960
	for <>; Sun, 29 Apr 2007 13:28:21 +0000 (UTC)
Message-Id: <>
Date: Sun, 29 Apr 2007 12:54:20 +0000 (UTC)
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:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 29 13:30:00 +0000 2007
>Closed-Date:    Sun Apr 18 19:58:12 +0000 2021
>Last-Modified:  Sun Apr 18 20:00:02 +0000 2021
>Originator:     rudolf
>Release:        netbsd-4
- 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)

man 8 cgdconfig, inspect /usr/src/sbin/cgdconfig/cgdconfig.c
--- 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
 .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());



State-Changed-From-To: open->closed
State-Changed-When: Sun, 18 Apr 2021 19:58:12 +0000
Applied (without the -n flag documentation, someone else has written it in the meantime), thanks.

From: "Maya Rashish" <>
Subject: PR/36243 CVS commit: src/sbin/cgdconfig
Date: Sun, 18 Apr 2021 19:56:10 +0000

 Module Name:	src
 Committed By:	maya
 Date:		Sun Apr 18 19:56:10 UTC 2021

 Modified Files:
 	src/sbin/cgdconfig: cgdconfig.8 cgdconfig.c

 Log Message:
 The -n flag is useless with -g, don't mention it.

 From rudolf in PR misc/36243

 To generate a diff of this commit:
 cvs rdiff -u -r1.48 -r1.49 src/sbin/cgdconfig/cgdconfig.8
 cvs rdiff -u -r1.50 -r1.51 src/sbin/cgdconfig/cgdconfig.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.