summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2007-02-18 23:22:33 +0000
committerjmc <jmc@openbsd.org>2007-02-18 23:22:33 +0000
commitc25d71fca3ee8afb689cd148e7d325b80c6f3f9f (patch)
tree1c2aa47c782535e73175025aac69e945c37f62bb /usr.sbin/ypbind
parenttidy up synopsis and usage(); partly from Igor Sobrado (diff)
downloadwireguard-openbsd-c25d71fca3ee8afb689cd148e7d325b80c6f3f9f.tar.xz
wireguard-openbsd-c25d71fca3ee8afb689cd148e7d325b80c6f3f9f.zip
tidy up synopsis and usage(); from Igor Sobrado
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.814
-rw-r--r--usr.sbin/ypbind/ypbind.c6
2 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/ypbind/ypbind.8 b/usr.sbin/ypbind/ypbind.8
index db5e4e50d32..bbefe314cab 100644
--- a/usr.sbin/ypbind/ypbind.8
+++ b/usr.sbin/ypbind/ypbind.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ypbind.8,v 1.19 2003/06/12 12:59:54 jmc Exp $
+.\" $OpenBSD: ypbind.8,v 1.20 2007/02/18 23:27:06 jmc Exp $
.\" $NetBSD: ypbind.8,v 1.2 1996/02/28 01:21:00 thorpej Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -43,9 +43,9 @@
.Nd create and maintain a binding to a YP server
.Sh SYNOPSIS
.Nm ypbind
+.Op Fl insecure
.Op Fl ypset
.Op Fl ypsetme
-.Op Fl insecure
.Sh DESCRIPTION
.Nm
finds the server for a particular YP domain and stores information about it
@@ -89,6 +89,11 @@ marks the domain as bound and resumes its periodic check.
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl insecure
+Permit binding to a
+.Xr ypserv 8
+on a non-reserved port.
+This is needed if receiving maps from SunOS 3.x or Ultrix.
.It Fl ypset
.Xr ypset 8
may be used to change the server to which a domain is bound.
@@ -96,11 +101,6 @@ may be used to change the server to which a domain is bound.
.Xr ypset 8
may be used only from this machine to change the server
to which a domain is bound.
-.It Fl insecure
-permit binding to a
-.Xr ypserv 8
-on a non-reserved port.
-This is needed if receiving maps from SunOS 3.x or Ultrix.
.El
.Pp
The
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 34784cf0481..3cfc1d564a4 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.55 2007/01/02 20:12:01 otto Exp $ */
+/* $OpenBSD: ypbind.c,v 1.56 2007/02/18 23:27:06 jmc Exp $ */
/*
* Copyright (c) 1992, 1993, 1996, 1997, 1998 Theo de Raadt <deraadt@openbsd.org>
@@ -27,7 +27,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.55 2007/01/02 20:12:01 otto Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.56 2007/02/18 23:27:06 jmc Exp $";
#endif
#include <sys/param.h>
@@ -333,7 +333,7 @@ ypbindprog_2(struct svc_req *rqstp, SVCXPRT *transp)
static void
usage(void)
{
- fprintf(stderr, "usage: ypbind [-ypset] [-ypsetme] [-insecure]\n");
+ fprintf(stderr, "usage: ypbind [-insecure] [-ypset] [-ypsetme]\n");
exit(0);
}