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:          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
>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());

>Release-Note:

>Audit-Trail:

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


From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
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.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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