Subject: bin/26534: usage fixes for bootpef(8)
To: None <>
From: None <>
List: netbsd-bugs
Date: 08/04/2004 00:21:10
>Number:         26534
>Category:       bin
>Synopsis:       usage fixes for bootpef(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 03 15:22:00 UTC 2004
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0G
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #40: Tue Aug 3 13:07:11 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
	The usage of bootpef(8) does not print its program name.

% bootpef -h
bootpd: unknown switch: -h
usage:  $s [ -c chdir ] [-d level] [-f configfile] [host...]
         -c n   set current directory
         -d n   set debug level
         -f n   config file name

	bootpef [unknown switch]

	* $s -> %s
	* add getprogname()
	* whitespace nit for -c option

Index: bootp/bootpef/bootpef.c
RCS file: /cvs/cvsroot/src/usr.sbin/bootp/bootpef/bootpef.c,v
retrieving revision 1.5
diff -u -r1.5 bootpef.c
--- bootp/bootpef/bootpef.c	13 Jul 2002 23:58:30 -0000	1.5
+++ bootp/bootpef/bootpef.c	3 Aug 2004 14:57:44 -0000
@@ -116,7 +116,8 @@
-	   "usage:  $s [ -c chdir ] [-d level] [-f configfile] [host...]\n");
+	    "usage: %s [-c chdir] [-d level] [-f configfile] [host ...]\n",
+	    getprogname());
 	fprintf(stderr, "\t -c n\tset current directory\n");
 	fprintf(stderr, "\t -d n\tset debug level\n");
 	fprintf(stderr, "\t -f n\tconfig file name\n");