summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-07-21 07:04:53 +0000
committerschwarze <schwarze@openbsd.org>2015-07-21 07:04:53 +0000
commit5852d0c62591d62418a378c8c56749df716d45e6 (patch)
tree5f27aef5bcbebd157a991d117ebfa35f10820384
parentdon't use .Xr for things that have no manual page (diff)
downloadwireguard-openbsd-5852d0c62591d62418a378c8c56749df716d45e6.tar.xz
wireguard-openbsd-5852d0c62591d62418a378c8c56749df716d45e6.zip
add missing -n to the SYNOPSIS and usage() and -d to the DESCRIPTION;
OK yasuoka@
-rw-r--r--usr.sbin/radiusd/radiusd.88
-rw-r--r--usr.sbin/radiusd/radiusd.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/radiusd/radiusd.8 b/usr.sbin/radiusd/radiusd.8
index 10b1bfeaf5c..cdfb2190a80 100644
--- a/usr.sbin/radiusd/radiusd.8
+++ b/usr.sbin/radiusd/radiusd.8
@@ -20,7 +20,7 @@
.Nd Remote Authentication Dial In User Service (RADIUS) daemon
.Sh SYNOPSIS
.Nm radiusd
-.Op Fl dn
+.Op Fl dhn
.Op Fl f Ar file
.Sh DESCRIPTION
The
@@ -29,6 +29,12 @@ daemon implements the RADIUS protocol.
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl d
+Do not daemonize, log to
+.Dv stderr
+instead of
+.Xr syslog 3 ,
+and produce some additional debugging output.
.It Fl f Ar file
Specify an alternative configuration file.
.It Fl h
diff --git a/usr.sbin/radiusd/radiusd.c b/usr.sbin/radiusd/radiusd.c
index 4a0a82d655e..e4458a42182 100644
--- a/usr.sbin/radiusd/radiusd.c
+++ b/usr.sbin/radiusd/radiusd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radiusd.c,v 1.1 2015/07/21 04:06:04 yasuoka Exp $ */
+/* $OpenBSD: radiusd.c,v 1.2 2015/07/21 07:04:53 schwarze Exp $ */
/*
* Copyright (c) 2013 Internet Initiative Japan Inc.
@@ -94,7 +94,7 @@ usage(void)
{
extern char *__progname;
- fprintf(stderr, "usage: %s [-dh] [-f file]\n", __progname);
+ fprintf(stderr, "usage: %s [-dhn] [-f file]\n", __progname);
exit(EX_USAGE);
}