summaryrefslogtreecommitdiffstats
path: root/usr.bin/rsh
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2000-11-24 09:25:44 +0000
committerjkoshy <jkoshy@FreeBSD.org>2000-11-24 09:25:44 +0000
commitb9a3db59e5738dde2c5b5760b25072efa717a13c (patch)
treebf5dd4858f73c4bcb86b2a4867daff1f380257b1 /usr.bin/rsh
parent36429cc482f3c812090ee50910c9840d9e83c5df (diff)
downloadFreeBSD-src-b9a3db59e5738dde2c5b5760b25072efa717a13c.zip
FreeBSD-src-b9a3db59e5738dde2c5b5760b25072efa717a13c.tar.gz
[rsh.1] Document the `-4' and `-6' options.
[rsh.c] Make usage message match the code.
Diffstat (limited to 'usr.bin/rsh')
-rw-r--r--usr.bin/rsh/rsh.16
-rw-r--r--usr.bin/rsh/rsh.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/rsh/rsh.1 b/usr.bin/rsh/rsh.1
index a66e73b..59830ff 100644
--- a/usr.bin/rsh/rsh.1
+++ b/usr.bin/rsh/rsh.1
@@ -40,7 +40,7 @@
.Nd remote shell
.Sh SYNOPSIS
.Nm
-.Op Fl Kdnx
+.Op Fl 46Kdnx
.Op Fl t Ar timeout
.Op Fl k Ar realm
.Op Fl l Ar username
@@ -63,6 +63,10 @@ command;
normally terminates when the remote command does.
The options are as follows:
.Bl -tag -width flag
+.It Fl 4
+Use IPv4 addresses only.
+.It Fl 6
+Use IPv6 addresses only.
.It Fl K
Turn off all Kerberos authentication.
.It Fl d
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c
index d57b5fc..935515a 100644
--- a/usr.bin/rsh/rsh.c
+++ b/usr.bin/rsh/rsh.c
@@ -491,7 +491,7 @@ usage()
{
(void)fprintf(stderr,
- "usage: rsh [-46] [-nd%s]%s[-l login] [-t timeout] host [command]\n",
+ "usage: rsh [-46] [-ndK%s]%s[-l login] [-t timeout] host [command]\n",
#ifdef KERBEROS
#ifdef CRYPT
"x", " [-k realm] ");
OpenPOWER on IntegriCloud