Subject: misc/36243: cgdconfig manual page correction: document -n flag; add -V to -g case; omit -n in -g case
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <rudolf@eq.cz>
List: netbsd-bugs
Date: 04/29/2007 13:30:00
>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());