summaryrefslogtreecommitdiff
path: root/sbin/badsect/badsect.c
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2007-08-06 19:16:08 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2007-08-06 19:16:08 +0000
commitd569c9b0c585d1ada0bb33679611b77eba528140 (patch)
treeaf2426db3e795320f587d155021169a3f1700b3e /sbin/badsect/badsect.c
parent602a7968e47e34fd38658741b7b66d3c9115f9cf (diff)
the ellipsis is not an optional argument; while here, sync the usage
and synopsis of commands lots of good ideas by jmc@ ok jmc@
Diffstat (limited to 'sbin/badsect/badsect.c')
-rw-r--r--sbin/badsect/badsect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/badsect/badsect.c b/sbin/badsect/badsect.c
index 6d34d1fe664..f3ecb9bdb32 100644
--- a/sbin/badsect/badsect.c
+++ b/sbin/badsect/badsect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: badsect.c,v 1.17 2007/06/29 03:37:09 deraadt Exp $ */
+/* $OpenBSD: badsect.c,v 1.18 2007/08/06 19:16:05 sobrado Exp $ */
/* $NetBSD: badsect.c,v 1.10 1995/03/18 14:54:28 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static char sccsid[] = "@(#)badsect.c 8.1 (Berkeley) 6/5/93";
#else
-static const char rcsid[] = "$OpenBSD: badsect.c,v 1.17 2007/06/29 03:37:09 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: badsect.c,v 1.18 2007/08/06 19:16:05 sobrado Exp $";
#endif
#endif /* not lint */
@@ -98,7 +98,7 @@ main(int argc, char *argv[])
int len;
if (argc < 3) {
- fprintf(stderr, "usage: badsect bbdir blkno [ blkno ]\n");
+ fprintf(stderr, "usage: badsect bbdir sector ...\n");
exit(1);
}
if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0)