Subject: misc/25865: missing option in the usage of swapctl(8)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 06/08/2004 03:25:15
>Number:         25865
>Category:       misc
>Synopsis:       missing option in the usage of swapctl(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 07 18:26:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0_BETA NetBSD 2.0_BETA (FIREFLY.MP) #22: Tue Jun 8 01:10:58 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	-z is missing in the usage of swapctl(8).

% swapctl
usage: swapctl -A [-p priority] [-t blk|noblk]
       swapctl -D dumppath
       swapctl -U [-t blk|noblk]
       swapctl -a [-p priority] path
       swapctl -c -p priority path
       swapctl -d path
       swapctl -l | -s [-k|-m|-g|-h]

>How-To-Repeat:
	swapctl

>Fix:
Index: swapctl.c
===================================================================
RCS file: /cvs/cvsroot/src/sbin/swapctl/swapctl.c,v
retrieving revision 1.25
diff -u -r1.25 swapctl.c
--- swapctl.c	20 Dec 2003 13:31:43 -0000	1.25
+++ swapctl.c	6 Jun 2004 03:03:56 -0000
@@ -589,5 +589,6 @@
 	fprintf(stderr, "       %s -c -p priority path\n", progname);
 	fprintf(stderr, "       %s -d path\n", progname);
 	fprintf(stderr, "       %s -l | -s [-k|-m|-g|-h]\n", progname);
+	fprintf(stderr, "       %s -z\n", progname);
 	exit(1);
 }
>Release-Note:
>Audit-Trail:
>Unformatted: